Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Referencing Forms
Message
 
To
22/09/1998 21:42:38
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00139665
Message ID:
00139674
Views:
19
>I wonder if someone can help me with a seemingly simple problem. How does one reference a property from form1 while in form2 in an application generated by foxpro? I used a line such as: form1.refresh
>It works when I do it in "interactive" mode, but when I compile and run the application, form2 does not "see" form1. Thank you!
>Frank

Frank, you can do it through the _screen.forms(n) collection - like _screen.forms(1).caption but better way is to run your form with NAME clause like:
DO form myForm NAME customers
then you can refer its properties as: customers.caption

Nick
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro

"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform