to Fencer:
如何得到state属性。
type TDataSetState = (dsInactive, dsBrowse, dsEdit, dsInsert,
dsSetKey, dsCalcFields, dsFilter, dsNewValue, dsOldValue,
dsCurValue, dsBlockRead, dsInternalCalc, dsOpening);
procedure Tfrm_dcdt.FormClose(Sender: TObject;varAction:TCloseAction);
var
i:integer;
begin
if datamodule1.dcdt.state= dsinsert then showmessage('您录入的数据尚未保存!');
end;
如下错误:[Error] Un_dcdt.pas(115): Incompatible types:
'Db.TDataSetState' and 'un_dcdt.TDataSetState'