Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I return an array from a form?
Message
 
To
18/01/1999 05:21:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00177095
Message ID:
00177099
Views:
35
>Hi everybody!
>
>Is there any way to return an array from a form?
>For example, I call a form with...
>
>local laArray[10],laRetArray[10]
>do form Form1 with laArray to laRetArray
>
>... and in its Init event do the following:
>thisform.aItems = taParamArray
>
>( aItems defined as aItems[10,0] )
>When I, in form's Unload event trying to
>...
>...
>return thisform.aItems
>
>it fills the laRetArray with first item's value
>
>Any suggestions?
>
>TIA.
>
>Uri.

You need to put the '@' sign at the beginning of one of the arrays (to tell it to send the reference). Probably the 'to' array.

What you do is send the array as @array and you can then change the values. Have a play with it.
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Previous
Reply
Map
View

Click here to load this message in the networking platform