用个TTimer控件, interval设为1000, label1的caption为空
procedure TForm1.Timer1Timer(Sender: TObject);
var
a: string;
begin
a := 'CHINA';
timer1.Tag := timer1.Tag + 1; label1.Caption := label1.Caption + a[timer1.tag]; if timer1.tag > length(a) then
begin
timer1.tag := 0;
label1.Caption := '';
end;
end;
procedure TForm1.Timer1Timer(Sender: TObject);
var
a: string;
begin
a := 'CHINA';
timer1.Tag := timer1.Tag + 1; label1.Caption := label1.Caption + a[timer1.tag]; if timer1.tag > length(a) then
begin
timer1.tag := 0;
label1.Caption := '';
end;
end;
然后用copy(0,i,str);
i:=i+1;
sWord:='china'
for iIndex:=0 to len(sWord)
sWord[iIndex]……
for i:=0 to length(s) do//s为你的字符串
begin
label1.caption:=label1.caption+s[i];
sleep(5000);
end;