Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing Arrays by reference
Message
From
21/12/2007 16:47:46
 
 
To
21/12/2007 16:42:29
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01277088
Message ID:
01277089
Views:
19
You need to copy the array from the property to a regular array. Look at ACOPY().

>I've built a class, called risUtil, which houses a number of methods including aColScan. This method takes 3 parameters, namely an array to scan. It requires that the array be passed by reference.
>
>In trying to use the aColScan method from another class I can't figure out how to send the array by reference. I've defined the aTableStructures array as a property of the class.
>
>
>lnRow = This.RISUtil.aColScan( @This.aTableStructures, .F., TABLE_STRUCTS_NAME_COL )
>
>
>Using the "@" character to force passing by reference gives me the following run-time error:
>"Alias 'THIS' is not found."
>
>Hopefully there is a simple solution to my problem. Any and all help is greatly appreciated!
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform