jrcosta75
06-02-2004, 14:27:01
Necesito saber como introducir una campo nulo de una tabla paradox 7 en un label ubicado sobre un form (Estoy utilizando Delphi 5 Enterprice)
Yo lo hice de la siguiente manera:
procedure TForm9.DBGrid1DblClick(Sender: TObject);
var
dni: Variant;
begin
dni:=modelodatos.TblOfab.FieldValues['Dni'];
Form8.Label41.Caption:=dni;
end;
pero me arrojo el siguiente error:
Proyect Proyect1.exe raised exception class EVariantError with messagge 'Invalid type variant conversion' Process stopped. Use Step or Run to continue
Desde ya muchas gracias.
Saludos
Yo lo hice de la siguiente manera:
procedure TForm9.DBGrid1DblClick(Sender: TObject);
var
dni: Variant;
begin
dni:=modelodatos.TblOfab.FieldValues['Dni'];
Form8.Label41.Caption:=dni;
end;
pero me arrojo el siguiente error:
Proyect Proyect1.exe raised exception class EVariantError with messagge 'Invalid type variant conversion' Process stopped. Use Step or Run to continue
Desde ya muchas gracias.
Saludos