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:
00301280
Views:
38
Josh,

I believe this questions discussed here many times, few days ago I saw discussion related this problem. There are several approaches here:

1) If you want to call method of the other form, I think, you can just use
MyFormName.method()
2) Issue NAME clause in do form
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().

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.


>No. these two forms are more or less unrelated. IE: each can exist w/o the other on the screen. BUT if the user has these two screens up; and changes something in one; it may require updating or at least letting the other one know.
>
>Or in other words: How can I call a method or set a property of another form that is not part of a formset?
>
>-josh
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform