-1
下面的代碼工作!問題打開窗體與預定義的標籤頁
with pagecontrol1 do
begin
case Myindex of
0: activepage := tabsheet1;
1: activepage := tabsheet2;
2: activepage := tabsheet3;
end;
end;
show;
下面的代碼不起作用
with pagecontrol1 do
begin
case Myindex of
0: activepage := tabsheet1;
1: activepage := tabsheet2;
2: activepage := tabsheet3;
end;
end;
showmodal;
如何解決這個問題?
你能更準確嗎?問題是什麼?在調用showmodal後會發生什麼? – splash 2010-09-15 12:22:30
你從哪個方法調用該代碼,它似乎是一個表單的一部分。這將有助於爲這個問題添加上下文。 – 2010-09-15 12:31:44
你將不得不定義「不工作」以及你期望發生的事情。 – 2010-09-15 13:02:53