Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to reference another forms objects???
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00460831
Message ID:
00460833
Views:
8
>I have a form(form1) that calls another form(form2).I am performing an oledrag and drop from form2 onto form1. I need to access form2 Properties from form1. If I opened form2 from form1 shouldn't I be able to refer to form2 properties by saying form2.property??

Not necessarily. Try creating a form-level property on Form1 and using the NAME clause when launchin Form2.

do form form2 name THISFORM.oForm

Then you can access Form2 from Form1 by using THISFORM.oForm.MyProperty.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform