>Hello, everyone,
>
>I have a method called UpdateArrayValues() in a Custom class. The method has a LPARAMETER called laarray. The purpose of this method is to change the values of an array passed by reference. The code looks like this:
>
>PROCEDURE UpdateArrayValues()
>LPARAMETERS laarray
>LOCAL i
>FOR i = 1 to alen(laarray)
> laarray[i]=THIS.pnincrease + laarray[i]
>*-- THIS.pnincrease is a property of the class that hosts the method. --*
>ENDFOR
>ENDPROC
>
>It works fine when I test the class through the Command Window. But, whenever I try to build it, an error message shows up and says "Unknown LAARRAY - Undefined". I removed the line between FOR and ENDFOR, then I was able to build it. But I do need to update the array this way.
>
>Please help!
>Any help will be appreciated.
>
>Dawa
Check out the help on EXTERNAL ARRAY command.