Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Access to other forms without 'formset.forms(x)'
Message
From
09/12/1998 10:05:02
 
 
To
09/12/1998 10:01:04
Mark Kessler
U.S.M.C. - Network Operation Center
Quantico, Virginia, United States
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00165548
Message ID:
00165551
Views:
9
>How would you access objects on a form without using...
>
>formset.forms(x).object.property
>
>Is there a way I can use it's name the same way?
>
>I have three forms on that formset and the "FORMS(x)" is like
>watching the forms play musical chairs.
>
>Is there anyway I could define a global variable to control the form?

If you use AddObject to add forms to your formset, then you may use its reference:
Thisformset.Addobject("myform","myformclass")
and later on:
Thisformset.Myform.Control1.Property...

You may also set global variables, but it's not a good way.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform