procedure TForm1.FormCreate(Sender: TObject);
begin
i:=1;
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
case i of
1:
begin
pagecontrol1.ActivePage :=tabsheet1;
inc(i);
end;
2:
begin
pagecontrol1.ActivePage :=tabsheet2;
inc(i);
end;
3:
begin
pagecontrol1.ActivePage :=tabsheet3;
inc(i);
end;
4:
begin
pagecontrol1.ActivePage :=tabsheet4;
i:=1;;
end;
end;
end;