Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing arrays - help
Message
From
21/11/2000 12:52:14
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00444229
Message ID:
00444254
Views:
8
>>>>>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
>
>In my function, I get a build error about the parameter_array being unknown. It is OK if i DIMENSION. Do I also have to DIMENSION the parameter_array?
>
>Brenda

Yes. Sorry about that.
Dimension myarray( ALen(thisformset.myarray,1), ALen(thisformset.myarray,2) )
ACopy(thisformset.myarray, myarray)
MyFunc(@myarray)
Insanity: Doing the same thing over and over and expecting different results.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform