![]() |
![]() |
| Paypal | FTP | CCD | Buscar | Trucos | Trabajo | Foros |
|
|||||||
| Registrarse | FAQ | Miembros | Calendario | Guía de estilo | Buscar | Temas de Hoy | Marcar Foros Como Leídos |
|
|
Herramientas | Buscar en Tema | Desplegado |
|
#3
|
|||
|
|||
|
Buenas, he puesto eso que me dices, he cambiado algunas cosillas porque las fechas están en la base de datos y hago la llamada al campo de la tabla. Me da un error que no sé solucionar. El error dice:
Proyect Promociones.exe raised exeception class EConvertError with message "' is not valid date'. Process stopped. Use Step or Run to continue. La modificación que hice: Código:
void __fastcall TXVista::StringGrid1DrawCell(TObject *Sender, int ACol,
int ARow, TRect &Rect, TGridDrawState State)
{
TCanvas *CV = static_cast<TCanvas*>(StringGrid1->Canvas);
TDate FechaCell = StrToDate(StringGrid1->Cells[0][ARow]);
while(!XDatos->QCatalogos->Eof)
{
if (FechaCell >= XDatos->QCatalogosFecha_ini->Value && FechaCell <= XDatos->QCatalogosFecha_fin->Value)
{
CV->Brush->Color = clLime;
CV->FillRect(Rect);
CV->TextOut(Rect.Left+1,Rect.top+1,StringGrid1->Cells[ACol][ARow]);
}
XDatos->QCatalogos->Next();
}
}
|
| Herramientas | Buscar en Tema |
| Desplegado | |
|
|
Temas Similares
|
||||
| Tema | Autor | Foro | Respuestas | Último mensaje |
| Conectar base de datos Firebird con base de datos Oscommerce 2.3.3 | Adriadob | Firebird e Interbase | 11 | 31-10-2012 11:28:46 |
| Ordenar datos en un StringGrid | gilberto_1126 | Varios | 2 | 22-12-2010 18:34:29 |
| StringGrid rellenar rapidamente. | byfali | Varios | 10 | 25-03-2008 00:25:19 |
| Rellenar una grilla con datos generados por el usuario | maco2007 | .NET | 11 | 05-12-2007 02:53:00 |
| Rellenar datos de tablas | sur-se | Firebird e Interbase | 1 | 11-11-2004 11:14:44 |
|