Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing an array to a form saved as a class
Message
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00074112
Message ID:
00074194
Views:
45
Yes, you must pass any array by reference. If you pass it by value, only the first element is passed.

Vlad

>Interestingly, there'll be no complaint from VFP if you pass it by value, DIMENSION and assign values to it in Init. It'll behave just as if you had passed it by reference, but will be externally unchanged when Init completes. However, if you pass it by value, and don't dimension it, then try to reference it in someway (eg. try ALEN() on it), an error will occur.
>
>George
>
>>Also, pass the array by reference and not by value.
>>
>>Vlad
>>
>>>Assuming that the array has been dimensioned, prior to your call, pass the variable to the CREATEOBJECT() function without quotes.
>>>
>>>hth,
>>>
>>>George
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform