donlego Posted September 14, 2017 Share Posted September 14, 2017 hi.. is there any way to call function / procedure on other form like if i have function/procedure on form error i create procedure like this procedure TFrmError.Run(arun: integer; acaption: string; errornya: tstringlist); var FrmError:TUniForm; begin screen.Cursor := crhourglass; FrmError := TFrmError.Create(nil); with FrmError do begin try Caption := acaption; if caption = '' then caption := 'Error'; caption := application.Title; Memo1.Text := errornya.Text; Memo1.Color := color; if FileExists(ExtractFilePath(Application.ExeName) + 'img\error.png') then Image1.Picture.LoadFromFile(ExtractFilePath(Application.ExeName) + 'img\error.png'); FormStyle := fsStayOnTop; ShowModal; finally screen.Cursor := crDefault; FreeAndNil(FrmError); end; end; end; how i call that form procedure or function from another form ? thanks Link to comment Share on other sites More sharing options...
Sherzod Posted September 14, 2017 Share Posted September 14, 2017 Hi, Which edition and build are you using ?! Best regards, Link to comment Share on other sites More sharing options...
donlego Posted September 14, 2017 Author Share Posted September 14, 2017 I use last unigui trial on unigui website with delphi xe7 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now