FM Mobile Destroy Form

本小妞迷上赌 提交于 2020-01-25 10:03:08

问题


How i can destroy form, I want: creatr Form1(start application), create Form 2, destroy Form1, working with form2, then create form 3, destroy form2. but I not know how to destroy form. If i call:

procedure TFPressStartScreen.btn1Click(Sender: TObject);
begin
  MainScreen.FMainScreen := MainScreen.TFMainScreen.Create(Application);
  MainScreen.FMainScreen.Show;
  DisposeOf;
end;

FPressStartScreen - 1 form, FMainScreen - 2 form, i create 2 form and need destroy 1. but i get access violation.

来源:https://stackoverflow.com/questions/26006752/fm-mobile-destroy-form

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!