Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Two Unrelated forms 'talking' to each other -- How?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00301175
Message ID:
00301284
Views:
31
>1) If you want to call method of the other form, I think, you can just use
>MyFormName.method()
Tried that; got Object MyFormName is not found. -- My guess is that this is because MyFormname is not an object belonging to the first formm...
I guess what I *want* is '_screen.MyFormName. ...'

>2) Issue NAME clause in do form
The 'unrelated' forms can get called from yet other forms, menus, events etc; so the name would need to be a public var... This is a thought.

>3) In the main program create private variables oForm1, etc. In your form's Init method set oForm1=thisform. So, after this you can call oForm1.method().
I think this would get me stuck as #1.

>In my apps I used third approach, but as I understand from recent discussion, the second method is more sufficient. Try ask Edward Pikman for more professional advise.

Thanks.

Cheers
-josh
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform