应该这样子吧!
procedure TForm1.Timer1Timer(Sender: TObject);
var
s: array[0..1] of String;
begin
s[0]:='无疯无禄';
s[1]:='感激你';
timer1.Interval:=1000;
if glb_ShowFlag = True then
begin
glb_ShowFlag := False;
statusBar1.Panels[1].Text:=s[0];
end else begin
glb_ShowFlag := True;
statusBar1.Panels[1].Text:=s[1];
end;
end;
end;