各位大侠好,我以下的这个代码好像没有错,但为什么会出现这些错误呢?
能帮我改一下吗?
procedure TForm_chaxun.BitBtn11Click(Sender: TObject);
begin
if radiobutton7.Checked=true then
with dm.ADOTable_huiyuanka do
begin
dm.ADOTable_huiyuanka.Edit;
dm.ADOTable_huiyuanka.IndexName:='kh';
dm.ADOTable_huiyuanka.Open;
setkey; 
dm.ADOTable_huiyuanka.FieldByName('kh').AsString:=edit4.Text;
gotonearest;
end;
出现下面的错误提示
[Error] Unit_chaxun.pas(325): Undeclared identifier: 'setkey'
[Error] Unit_chaxun.pas(328): Undeclared identifier: 'gotonearest'
[Fatal Error] project_server.dpr(15): Could not compile used unit 'Unit_chaxun.pas'