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 10:57:41
Jerry Tovar
Dana Corporation Dana It
Maumee, Ohio, United States
 
 
To
05/08/1998 10:51:34
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00124072
Message ID:
00124084
Views:
19
>>I want to pass an array to a form by reference, have the form change/add to the array and have the calling prg seen these changes to the array.
>>
>>In my main.prg I ;
>>
>>DIME x[1]
>>DO FORM mymodalform WITH x
>>
>>In the mymodalform.scx, I want to change/add to the "x" array and have the main.prg seen these changes when the modal form is closed.
>>
>>Thanks,
>>
>>Jerryt
>Jerry,
>You could directly call myform w/o any parameter unless you declared your array local.
>Cetin


I can pass an array to a form, change/add the array in the form's INIT(), then close the form and the array is changed in the calling program.

My problem is that I can't seen a reference to the passed in array in the form except in the form's INIT().

After I pass in the array, how can I get to it from another object or method in that form?

Thanks,

Jerryt
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform