Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scoping of Variables
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00011488
Message ID:
00011599
Views:
35
>Ok, I tried to create new properties and it recognizes it in all
>my methods and procedures, but I still have a problem, first, what
>I would like to do is send the variable to a form lets say :
>DO oMyForm WITH aMyArray, Where aMyArray is an array,
>Change the dimension of the array inside of the form, assign new
>values to it, and after releasing the form keep the new values in aMyArray,
>make some sense ?. I can't use the unload method because it doesn't
>return arrays, and sometimes I need to change more than one variable
>or array, and I don't want to make aMyArray public.
>I will apreciate any sugestion, thanks in advance.
>P.S. This is driving me nuts.

Luis,

Is oMyForm modal. If it is, then on return the information should
reside in your array.

If oMyForm is not modal, then the question is to whom you would
like the information to be sent. As soon as the form is shown,
your array goes out of scope, and so does the procedure that
called the form, so there is not anyboddy left!

Have you thought of creating a cursor that would contain the
information you would like to exchange between forms. This
does require that you use public data session for your forms,
which excludes multiple instances.

HTH.

Marc

If things have the tendency to go your way, do not worry. It won't last. Jules Renard.
Previous
Reply
Map
View

Click here to load this message in the networking platform