I try to upgrade my application from Zeos 7.2.0b to 8.0.0-r7490.
This code present in the OnValidate event of the column DATA_REGISTRAZIONE:
Code: Select all
procedure TForm11.ztbDocTestaDATA_REGISTRAZIONEValidate(Sender: TField);
begin
zquery1DATA_DOCUMENTO.Value := ZQuery1DATA_REGISTRAZIONE.Value;
end;
in the column zquery1DATA_DOCUMENTO.Value.'0000-00-00'
If I change .Value with .AsDateTime the result in zquery1DATA_DOCUMENTO is '30/12/1899'!
This code present in the OnValidate event of the column DATA_DOCUMENTO:
Code: Select all
procedure TForm11.ztbDocTestaDATA_DOCUMENTOValidate(Sender: TField);
begin
if (ZQuery1DATA_DOCUMENTO.AsDateTime > ZQuery1DATA_REGISTRAZIONE.AsDateTime) then
raise Exception.Create('The registration date is more recent than the date of the document!');
end;
why those results? What i'm wrong?
Thanks