mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-27 23:09:45 +02:00
LCL, TDBDateDeit: Display date as empty string when its value in database is NULL. Patch by Don Siders, issue #40661.
This commit is contained in:
parent
aae0c2019e
commit
72fd05acc7
@ -12,7 +12,7 @@
|
||||
|
||||
procedure TDBDateEdit.DataChange(Sender: TObject);
|
||||
begin
|
||||
if FDataLink.Field <> nil then
|
||||
if (FDataLink.Field <> nil) and (not FDataLink.Field.IsNull) then
|
||||
Self.Date := FDataLink.Field.AsDateTime
|
||||
else
|
||||
Text := '';
|
||||
|
Loading…
Reference in New Issue
Block a user