donlego Posted September 14, 2017 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 Quote
Sherzod Posted September 14, 2017 Posted September 14, 2017 Hi, Which edition and build are you using ?! Best regards, Quote
donlego Posted September 14, 2017 Author Posted September 14, 2017 I use last unigui trial on unigui website with delphi xe7 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.