try
 with DataModuleado.adoquery1 do
 begin
  sql.clear;
  sql.add('select* from ICNAME ');
  open;  listview1.Items.Clear;
  while not eof do
    begin
    with Listview1.Items.add do
       begin       caption :=fieldbyname('NUM').AsString;
       subitems.Add(fieldbyname('ICCODE').AsString);
       subitems.Add(fieldbyname('ICNAME').AsString);
       end ;
     next;
   end;
  close;
 end;
 except
 listview1.Items.Clear;
 messagedlg('刷新时出错',mterror,[mbok],0);
 end;我想请问这一段当中的 next 是表示什么意思
这是一段从数据库向listview中添加数据的程序

解决方案 »

  1.   

    next表示指针移向下一条记录!
      

  2.   

    数据库指针移动到下一条记录,继续执行前面的操作(not eof)
      

  3.   

    next
    AHD:[nµkst]
    D.J.:[nekst]
    K.K.:[nWkst]
     adj.
    Nearest in space or position; adjacent:
     最接近的,临近的空间或位置上最近的;邻近的:
    the next room.
    隔壁房间
    Immediately following, as in time, order, or sequence:
     下次的,其次的紧接着的,如在时间上、顺序上或结果上:
    next week; the next item on the list.
    下周;名单的下一条
    next
     adv.
    In the time, order, or place nearest or immediately following:
     紧临地时间、顺序或位置最近或紧跟地:
    reading this book next; our next oldest child.
    接下去读这本书;我们第二个孩子
    On the first subsequent occasion:
     接下去随后第一件事:
    when next I write.
    接着我开始写作
    next
     n.
    The next person or thing:
    随后的人或事:
    The next will be better.
    下一个会好些next to
    Adjacent to:
    毗连的,紧邻的:
    the car next to hers.
    挨着她的车
    Following in order or degree:
    在顺序或程度上接下去的:
    Next to skiing, she likes hiking.
    除了滑雪,她最喜欢徒步旅行
    Almost; practically:
    几乎;实际上:
    next to impossible.
    几乎不可能Middle English nexte
    中古英语 nexte
    fromOld English nºehsta, n¶hst,superlative of n¶ah[ near ] 
    源自古英语 nºehsta, n¶hst, n¶ah的最高级[ 近 ] 
    *See Also : n¶hw-iz  In Appendix
      

  4.   

    next
    [nekst]
    n.
    adj.下次的, 其次的, 与...连接, 下一个
    adv.
    下一次, 其次
      

  5.   

    是不是应该在 while not eof do
    之前加一句 first 定位到第一条记录