目前只能查到一个记录,怎么把查到的记录全部用高亮显示呢?
或者逐个显示也行
程序如下
if r1.Checked=True then
begin
Table1.IndexFieldNames:='姓名';
Table1.EditKey;
Table1.FieldByName('姓名').AsInteger:=StrToInt(Edit12.text);
IF table1.gotoKey<>true then
begin
Application.MessageBox('没有查到该记录','提示信息',MB_OK);
end;
end;
或者逐个显示也行
程序如下
if r1.Checked=True then
begin
Table1.IndexFieldNames:='姓名';
Table1.EditKey;
Table1.FieldByName('姓名').AsInteger:=StrToInt(Edit12.text);
IF table1.gotoKey<>true then
begin
Application.MessageBox('没有查到该记录','提示信息',MB_OK);
end;
end;
解决方案 »
- 请问IP地址能这样转发吗 谢谢 谢谢
- sql数据库的连接问题
- 怎样调用dll中的函数
- ActiveX问题
- 谁有delphi编写modem拨号的程序,谢谢
- 大家帮我看看,人都可以嫁,给分算啥?
- 请问大家那里有图像压缩的好算法啊,指定是bmp与jpeg的图像
- 每天做什么erp,好没意思,想做game
- 《Delphi 4 Developer's Guide Coding Standards Document》的汉化版哪里有??
- MailMenu定义了Images后的烦恼
- 有关SQLDMO打包的问题,十万火急!!!
- 100分!在子窗口中更新数据,用FMainFrm.ADOQry.UpdateBatch(arAll)为什么会出错?
with adoquery1 do
begin
close;
SQL.Clear;
SQL.Add('select * from 表 where 姓名=:xName');
Parameters[0].value:=某变量或某Edit中的值;
Open;
if IsEmpty then
Application.MessageBox('没有查到该记录','提示信息',MB_OK)
else
//找到了记录,再进行相应的处理
end;