Code: Alles auswählen
if (dbf.fieldbyname('xyz').asDate<>NIL
NULL
''
30.12.1899) then ...
Schon mal vielen Dank im Voraus.
Code: Alles auswählen
if (dbf.fieldbyname('xyz').asDate<>NIL
NULL
''
30.12.1899) then ...
Code: Alles auswählen
if dbf.FieldByName('xyz').IsNull then ...
Code: Alles auswählen
// schlecht
n := 0;
dbf.First;
while not dbf.EoF do begin
if not dbf.FieldByName('xyz').IsNull then inc(n);
dbf.Next;
end;
// besser
var
F: TField;
begin
F := dbf.FieldByName('xyz');
dbf.First;
while not dbf.EoF do begin
if not F.IsNull then inc(n);
dbf.Next;
end;