- check for editable state in SetFieldData

This commit is contained in:
joost 2005-05-07 14:41:00 +00:00
parent 37a0e8db97
commit 734aa62d36

View File

@ -421,6 +421,11 @@ var
FieldUpdBuf : PFieldUpdateBuffer;
begin
if not (state in [dsEdit, dsInsert]) then
begin
DatabaseErrorFmt(SNotInEditState,[NAme],self);
exit;
end;
If Field.Fieldno > 0 then // If = 0, then calculated field or something
begin
CurrBuff := ActiveBuffer;