procedure Tusermanagerform.BitBtnOKClick(Sender: TObject);
begin
with DMForm.tblUser do
begin
if State IN [dsInsert,dsEdit] then//这里出现错误,不知怎么改
try
Post;
except
MessageBeep(1);
ShowMessage('用户名不能重复!');
DBEdit1.SetFocus;
Exit;
end;
end;
ModalResult:=1;
end;
错误信息:
[错误] usermanager.pas(44): Undeclared identifier: 'dsInsert'
[错误] usermanager.pas(44): Incompatible types: 'TDataSetState' and 'Integer'
[错误] usermanager.pas(61): Undeclared identifier: 'dsInsert'
[错误] usermanager.pas(61): Incompatible types: 'TDataSetState' and 'Integer'
[致命错误] main.pas(6): Could not compile used unit 'usermanager.pas'
我不明白是什么原因?请指个方向
begin
with DMForm.tblUser do
begin
if State IN [dsInsert,dsEdit] then//这里出现错误,不知怎么改
try
Post;
except
MessageBeep(1);
ShowMessage('用户名不能重复!');
DBEdit1.SetFocus;
Exit;
end;
end;
ModalResult:=1;
end;
错误信息:
[错误] usermanager.pas(44): Undeclared identifier: 'dsInsert'
[错误] usermanager.pas(44): Incompatible types: 'TDataSetState' and 'Integer'
[错误] usermanager.pas(61): Undeclared identifier: 'dsInsert'
[错误] usermanager.pas(61): Incompatible types: 'TDataSetState' and 'Integer'
[致命错误] main.pas(6): Could not compile used unit 'usermanager.pas'
我不明白是什么原因?请指个方向
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货