Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Access to other forms without 'formset.forms(x)'
Message
De
09/12/1998 10:05:02
 
 
À
09/12/1998 10:01:04
Mark Kessler
U.S.M.C. - Network Operation Center
Quantico, Virginie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00165548
Message ID:
00165551
Vues:
14
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform