Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to pass an array and return array from a form
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00759681
Message ID:
00759763
Views:
18
>How would I pass an array to a form and then return the array to the >calling form?
>I would prefer to not use a variable that would be available after the >calling form is released.

Hi Allan
Because forms don't return parameters I use cursors instead
CREATE CURSOR mycursor (someval C(10))
*// populate the cursor
DO FORM myform
*// Use and fill the values
Thisform.Release
*// The cursor is populated and if you want the values in an array
SELECT someval FROM mycursor INTO ARRAY myarray
SELECT mycursor
USE
Cheers
John
To move a mountain start with the smallest stone
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform