Accessing a loaded form's method by a different active form
Posted: Wed Oct 14, 2015 9:07 am
Hey guys
I'm trying to figure out how to run another form's method from another, active form. Both forms are open. There is a main form and then a pop-up form. From the pop-up form, I want to run a method of the main (basically to refresh something). I want to run the method when a button on the pop-up form is loaded.
For some reason, I just can't get the instance to access the main forum, even though it is open and running. It's just not the active form.
I have looked at this topic
https://forums.jadeworld.com/viewtopic.php?t=1546
But by doing this;
I am able to set the forms properties, but not run its methods.
Any help is appreciated
Thanks in advance
Mark
I'm trying to figure out how to run another form's method from another, active form. Both forms are open. There is a main form and then a pop-up form. From the pop-up form, I want to run a method of the main (basically to refresh something). I want to run the method when a button on the pop-up form is loaded.
For some reason, I just can't get the instance to access the main forum, even though it is open and running. It's just not the active form.
I have looked at this topic
https://forums.jadeworld.com/viewtopic.php?t=1546
But by doing this;
Code: Select all
frm := app.getForm("mainMenu").Form;
Any help is appreciated
Thanks in advance
Mark