Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Forms returning values
Message
From
26/01/2000 16:50:16
 
 
To
26/01/2000 15:44:04
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00323129
Message ID:
00323188
Views:
20
>When we issue "do form myform to " the form called returns only one value to . Is there a way to receive more then one value.

Pass the variables by reference:


local lcFirst, lcSecond, lcThrid
do form c:\vfptest\multivar with lcFirst, lcSecond, lcThrid


If the INIT() of your form looks like:

lparam lc1, lc2, lc3

lc1 = 'First Var'
lc2 = 'Second Var'
lc3 = 'Third Var'


After the form is done, checking the value of lcFirst will return 'First Var'. Or use a single array instead of multiple variables. You can also use an object and create the properties needed for each variable and pass that.
Previous
Reply
Map
View

Click here to load this message in the networking platform