Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing a parameter from one form to another.
Message
De
31/07/2001 16:45:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
 
À
31/07/2001 16:38:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00538001
Message ID:
00538007
Vues:
10
>Does anyone know of a good way to pass a parameter from one form to another? The way I'm using is not doing the trick.
>TIA

In Form1:
lnValue = 5
do form Form2 with lnValue
In Form2.Init():
lparameters tnValue
ThisForm.nValue = tnValue  && Add property through form | properties
Or: pass a parameter to the form itself.

Form1:
do form Form2 with ThisForm
Form2.Init():
lparameters toCallingForm
ThisForm.oCallingForm = toCallingForm
Form2.SomeMethod:
local lnSomeValue
lnSomeValue = ThisForm.oCallingForm.nSomeProperty
...
HTH, Hilmar.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform