while not table1.Eof do
begin
if
table1.FieldByName('stu_num').Value=edit20.Text
then
begin
messagedlg(' ѧԱ±àÂëÖظ´£¬ÇëÖØÐÂÊäÈë',mtconfirmation,[mbOK],0);
break;
end
else
next;
end;
begin
if
table1.FieldByName('stu_num').Value=edit20.Text
then
begin
messagedlg(' ѧԱ±àÂëÖظ´£¬ÇëÖØÐÂÊäÈë',mtconfirmation,[mbOK],0);
break;
end
else
next;
end;
解决方案 »
- 关于数据插入异常问题
- 那位能告诉我怎么使用这个OCX组件,MS DataGrid control 6.0 SP6(VB 中的MSDATDRD 6.0 )
- 请高手解决棘手老问题 《tif文件合并和分割问题》在线等待。。。急急急(分不够可再开贴加)
- 天凉了,也该多穿个衩衩了,今天刚穿了一个衩衩,高兴!散分!
- 学delphi学了三年了,越学心里越没底,郁闷,散分
- 对表查询时的用户登陆界面怎么去掉?
- adoquery1查询到的数据,在quickrep1中显示的问题
- SQL语句出错
- 有关于处理form, unit ,project的小问题烦劳各位,请好人关注!!!!!
- 浏览器编程
- 在delphi环境下,如何读出错误信息
- 如何在dbgrid没有任何数据时紧张onkeydown事件的执行?
...
else
table1.next;
你自己在看看就知道了还有你的代码写的太不规范了----------!!!!!!!!
把上面的TABLE1去掉,能否运行,编译就知道了
with Table1 do
while (not eof) do
begin
if trim(FieldByName('stu_num').Asstring)=trim(edit20.Text) then
begin
messagedlg([message_string],mtconfirmation,[mbOK],0);
break;
end else next;
end;