Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing execution parameters to a form in a formset
Message
 
À
28/09/1998 13:59:00
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00141540
Message ID:
00141578
Vues:
24
Thanks John,

Hmm, that's a bit of a problem, particularly when you have just finished
designing a form class that takes parameters !

There are other problems too : if you do not want the form to
even initialize depending on the value of some of the parameters,
am I right in saying that the only way to do it inside a formset
is to have the form initialize as HIDDEN and then either un-hide it
or release it depending on what the parameters are ?

Michel.

>Hi Michel ---
>
>Put the LPARAMETERS param1,etc... in the Init of the Formset and not the form. Create custom properties in the Formset to store the parameters to. You can access them from the form level with THISFORMSET.Property *but* not in the Form init because form init comes BEFORE Formset init.
>
>
>>The DO FORM ..... WITH param1, param2, etc... allows you
>>to pass parameters to a form which one captures in the Init
>>method of the form.
>>
>>If a form is part of a formset, however, and is the first
>>form (or even the only form) in that formset that will be
>>executed, how do you pass parameters to it from the
>>DO FORM statement in the Command Window ?
>>
>>Thanks in advance.
>>Michel.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform