Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing arrays - help
Message
From
21/11/2000 15:24:26
 
 
To
21/11/2000 12:36:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00444229
Message ID:
00444330
Views:
12
>>>>>What is the syntax for passing a two dimentional array to a function? When my function receives the array it is not an array, just a character type. How do I pass an array?
>>>
>>>>=MyFunc(@MyArray)
>>>
>>>I tried that. But myarray is really thisformset.myarray and the function call does not like (@thisformset.myarray).
>>>
>>>Brenda
>>
>>Then you have to ACOPY(thisformset.myarray, MyArray) first
>
>dagnabit - always hitting send too soon...
>
>Or you can pass an object reference to the formset itself
>MyFunc(thisformset)

Trey:

Could you educate me a bit on this? You say to "pass an object reference" into the function. Is this truely passed by reference in that changes made to the parameter are reflected back the same way changes made to an array passed by reference are passed back???

Thanks........Rich
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform