Ver Mensaje Individual
  #5  
Antiguo 10-09-2007
[FGarcia] FGarcia is offline
Miembro Premium
 
Registrado: sep 2005
Ubicación: Cordoba, Veracruz, México
Posts: 1.123
Reputación: 20
FGarcia Va por buen camino
Bueno se convirtio en capricho usar el stringgrid y la unica solucion que encontre fue esta

Código Delphi [-]
//cree una variable local
esteTotal: string;
 
//antes de asignar los datos al string grid pruebo el valor del campo devuelto HTotal
if QyHora.Fields.FieldByName('HTotal').IsNull  then
        esteTotal := '0'
      else
        esteTotal := QyHora.FieldValues['HTotal'];
 
//Asigno el valor de esteTotal al stringgrid
case of estaHora of
0: begin
       StringGrid1.Cells[1,18] := QyHora.FieldValues['HSacos'];
       StringGrid1.Cells[2,18] := esteTotal;
    end;
.
.
.
.
23: begin
       StringGrid1.Cells[1,18] := QyHora.FieldValues['HSacos'];
       StringGrid1.Cells[2,18] := esteTotal;
     end;
end;

Aun asi, si alguien conoce un modo mas elegante de hacer esto se agradece.
Responder Con Cita