循环喊话模拟

 
procedure TForm1.Timer1Timer(Sender: TObject);
{$j+} //全局变量
const i:integer=0; //定义常量 i
{$j-}
begin
  ListBox1.Items.Add(memo1.lines.strings[i]);
  if i >= memo1.lines.count - 1 then  i := 0
  else inc(i);
end;




posted @ 2012-05-26 08:13  XE2011  阅读(104)  评论(0编辑  收藏  举报