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:
00759907
Views:
14
John,

My form tries to return 27 values in an array, but the calling form sees the same value in all elements upon return.
The cursor would work with a bit of tweaking since there is a mixture of field types (character, logical and integer).
Tks for the idea.

>>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
Regards,

Allan Coganovitch
allanc@proven-solutions.com
Previous
Reply
Map
View

Click here to load this message in the networking platform