Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you pass an array to a form?
Message
From
05/08/1998 11:12:41
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
 
To
05/08/1998 11:05:38
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00124072
Message ID:
00124095
Views:
18
>That's why I said just call myform w/o parameter and make array visible to all form PEMs. If you pass it as a parameter it would be scoped to init and thus you would need a form property (an array) to hold the passed parameter to be able to change within another method of form.
>
dim aX[1]
>do form myform
>* Now myform PEMS can access aX
>* ie: a button.click on myform
>dimension aX[5]
>for ix=1 to 5
>  aX[ix] = ix^2
>endfor
>thisform.release
>* On return disp memo like aX
Cetin

Cetin,

That solved the problem. Thanks for your help.

Jerryt
Previous
Reply
Map
View

Click here to load this message in the networking platform