Re:Why Doesn't This Work?
I want to validate a field in a grid component so that a minimum value of
zero is assigned to the field if the user deletes the entry. I am using
the following code:
procedure TfrmMain.qryBealCoverageValidate(Sender: TField);
begin
If qryBealCoverage.IsNull then
qryBealCoverage.value := 0;
end;
Delphi recognizes that the field is null if I delete the entry with the
Delete key and performs the line to assign 0 to it, but nothing is assigned
to the field when I inspect the database. Does anyone know why and/or a
better way to do this?
Thanks,
Jay B.
jbois...@airmail.net
-------------------------------------------------
Man's mind stretched to a new idea
never goes back to its orginal dimension.
==Oliver Wendell Holmes==
-------------------------------------------------