Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Child references to a Parent
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00175863
Message ID:
00175875
Views:
27
>I have 2 forms "A" and "B". "A" calls "B". While in form "B" I need information that is in "A".
>
>Is it as simple as:
>B.thisField = A.thatField

If A's name is constant and visible, it's that simple. A better way would be to pass THISFORM as a parameter from A to B and save it in a form property in B; if your form B had a property OParentForm, and the Init code looked something like:

LPARAMETER oParentFormRef
thisform.oParentForm = oParentFormRef
*etc, etc etc

and you invoked B via:

DO FORM B WITH thisform

you could later within methods of B say something like:
WITH (thisform.oParentForm)

   this.SomeProperty = .ParentFormPropertyThatYouNeed
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform