Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Popup tied to Formset
Message
 
À
04/12/1999 14:16:31
Loren Fedje
Loren D. Fedje & Associates Ltd.
Chilliwack, Colombie Britannique, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de menu & Menus
Divers
Thread ID:
00298725
Message ID:
00298731
Vues:
12
>I have a toolbar that is part of a formset. This toolbar has a Search button that sets some variables based on code like (With thisformset.form1.pageframe1)etc.
>
>I then go into a Do While loop until I have finished my search.
>
>I have no problem with the code for the toolbar because it is part of the formset. However, I don't understand the code required to do the same thing from a menu or popup. I can design the menus and popups ok as well as primary functions that don't require addressing the formset.
>
>How do I do the same thing from a Pupup menu? You can't use thisformset.form1.pageframe1.?

Launch the formset with a NAME clause - if it's in your main PRG, the NAME reference will be global, since it's scoped like a Private. Then just refer to it by whatever name you used:

DO FORM myformset NAME oSomething

then from popup, or anywhere else, refer as:

oSomething.form1.etc

If you're not launching the formset from a main PRG, a similar but slightly different approach can be used.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform