各位大侠好,我以下的这个代码好像没有错,但为什么会出现这些错误呢?
能帮我改一下吗?
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'
能帮我改一下吗?
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'
解决方案 »
- 字符转整形郁闷问题
- 如何用delphi操作记录型文本文件。
- DELPHI的BUG还是故意? 一个让我痛恨的readln()问题, DELPHI5没有问题, DELPHI6, DELPHI7都有问题
- 如何统计一个文本编辑框的字符个数?
- 怎样实时刷新SQL SERVER数据库表的记录?
- help me!(有关activex form的!)
- 如何调用系统的“搜索文件文件夹”窗体及其页面?
- ClientDataset怎样得到一个字段一共拥有多少列值?
- 能不能推荐一个好用的用于个人信息管理软件开发的控件?
- 把CAD的图象保存成dxf格式用delphi做界面读出来图形?
- 怎么让WebBrowser控件随窗口大小改变而改变
- 如何对dBGridEh查询结果再进行查询
如果想要通过编译的话,就把那两行删掉。:)
dm.ADOTable_huiyuanka.FieldByName('kh');
你这样试下看。