for i:=0 to screen.formcount-1 do
begin
if screen.form[i].formname='name' then MDIform.show
else applciation.createform(.....)
exit;
end;
begin
if screen.form[i].formname='name' then MDIform.show
else applciation.createform(.....)
exit;
end;
调试欢乐多
var
I: Integer;
begin
with Form1 do
for I:=MDIChildCount-1 downto 0 do
if MDIChildren[I].Caption='ShowForm' then
MDIChildren[I].Show;
end;具体根据自己的实际情况设置要显示的Form了!第二个问题没有搞清楚你的真实意思!
找到了即show else Create;
第二个问题利用触发事件,如发生更改,出警告框并恢复
我才学了一个月,如果可以,请侍分吧