Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing a parameter from one form to another.
Message
From
31/07/2001 16:45:36
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
 
To
31/07/2001 16:38:28
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00538001
Message ID:
00538007
Views:
11
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform