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
Dawa Tsering
"Do not let any unwholesome talk come out of your mouths,
but only what is helpful for building others up according to their needs,
that it may benefit those who listen."
- Ephesians 4:29-30 NIV
Dare to Question -- Care to Answer
Time is like water in a sponge, as long as you are willing you can always squeeze some.
--Lu Xun, Father of Modern Chinese Literature