Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Form A and Form B
Message
 
 
To
31/07/2010 18:19:51
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01474760
Message ID:
01474771
Views:
37
>With help last week from Naomi and Hilmar I am able to check for the existence of form b (called from form a) and close it from form a. (See Thread 1473802) Now I'd like to execute a method in Form B called from an event in Form A. Is that possible?
>
>Thanks in advance.
>
>dg

The way I solve such problem is this:

You need to get a reference to the formB in form's A. One of the ways is if the form B calls Form A it passes itself as a reference, e.g.

do formA with thisform. In the form's A Init method you save that reference in form's property and then you can call any method of form's B using that reference.
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