Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing parameters
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Divers
Thread ID:
00101751
Message ID:
00102138
Vues:
26
>Jose,
>
>>How can I pass a parameter to a CListObjEditForm form ?
>
>There are two ways to accomplish this.
>
>1) If you only need to reference a value in the calling form, from within the CListObjEditForm you can reference the calling form by means of Thisform.oCallingform..
>
>2) If you truly want to pass a parameter, you can override the default method and pass a new parameter as follows:
>
>*--- Duplicate the default parameters and add your own at the end
>LPARAMETERS tlAddMode, toCallingForm, toCallingFormListObj, tuMyNewParm
>
>*--- Possibly save the value of the parameter
>ThisForm.uMyNewParm = tuMyNewParm
>
>*--- Run the default method and pass the parameters
>RETURN DODEFAULT(tlAddMode, toCallingForm, toCallingFormListObj)
>
>Regards,

This form will be called by 3 different forms and I only needed to know what was the calling form and I used toCallingForm.Name.

Regards,
José Augusto Cavalcanti
Global Connection
jose.cavalcanti@globalconnection.com.br
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform