首先定义了一个整型变量p_cot,在程序运行中为什么被跳过?不明白!
if bitbtn1.Caption='下一页' then
begin
p_i:=0;
while not query1.Eof do
begin
if p_i<23 then
begin
for p_i:=0 to self.ComponentCount-1 do
begin
if self.Components[p_i] is tcheckbox then
begin
tcheckbox(self.Components[p_i]).Caption:=query1.FieldByName('名称').asstring;
p_rc:=query1.RecNo+1; p_cot:=p_cot+1; //此处程序为什么会跳过? query1.Next;
if query1.RecordCount<p_rc then
begin
bitbtn1.Caption:='上一页';
bitbtn1.Glyph.LoadFromFile('C:\company\images\arrow_l.bmp');
break;
end;
end;
end;
end
else
break;
end;
if bitbtn1.Caption='下一页' then
begin
p_i:=0;
while not query1.Eof do
begin
if p_i<23 then
begin
for p_i:=0 to self.ComponentCount-1 do
begin
if self.Components[p_i] is tcheckbox then
begin
tcheckbox(self.Components[p_i]).Caption:=query1.FieldByName('名称').asstring;
p_rc:=query1.RecNo+1; p_cot:=p_cot+1; //此处程序为什么会跳过? query1.Next;
if query1.RecordCount<p_rc then
begin
bitbtn1.Caption:='上一页';
bitbtn1.Glyph.LoadFromFile('C:\company\images\arrow_l.bmp');
break;
end;
end;
end;
end
else
break;
end;
解决方案 »
- 如何导出ORACLE数据库中某个用户的所有表结构?
- 很小的问题
- TClientSocket与TServerSocket关闭连接总是报错
- 请教
- 谁有这样的delphi第三方控件
- 为什么在Tidtcpserver中将Actvie置成了False,客户端并未断开??(小女子初入门,多多指教啊:)
- 在线等!!关于快捷键的问题,中午就结,
- sql能写这个查询吗?
- 一个奇怪而又简单的delphi问题,请大家解答
- 如何用api播放*.wav,*.mid等多媒体文件,MciSendString只能放*.mid,avi,不能放wav
- 能否将DLL文件编译到EXE文件中?
- win32调试API(WaitForDebugEvent)
p_rc:=query1.RecNo+1;