You are not logged in.
Pages: 1
It is often necessary to leave the date blank
use ADO i write
if query.FieldByName('DATE_BL').IsNull then dedtDATE_B.Clear
else dedtDATE_B.Date := FieldByName('DATE_BL').AsDateTime;
i write procedure, but i think is a bad way to check null datetime
procedure ReadDate(dedt: TRzDateTimeEdit; d: TDateTime);
begin
if DatetoStr(d) = '30.12.1899' then dedt.Clear
else dedt.Date := d;
end;
Last edited by noobies (2011-10-05 11:27:17)
Offline
WOW is pretty simple, thanks!
Offline
Pages: 1