mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-30 06:50:40 +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);
|
procedure TDBDateEdit.DataChange(Sender: TObject);
|
||||||
begin
|
begin
|
||||||
if FDataLink.Field <> nil then
|
if (FDataLink.Field <> nil) and (not FDataLink.Field.IsNull) then
|
||||||
Self.Date := FDataLink.Field.AsDateTime
|
Self.Date := FDataLink.Field.AsDateTime
|
||||||
else
|
else
|
||||||
Text := '';
|
Text := '';
|
||||||
|
Loading…
Reference in New Issue
Block a user