Marco--
First, thank you for sharing your code. In the code, you declare the arrays as private:
I am curious as to why? I have gotten away from using private variables since the scope of them is visible to called programs which in the past has caused me many issues before the LOCAL declaration came about. I have a check in my editor to show undeclared variables (which by default would be PRIVATE). For arrays, I use the following declaration:
This initializes and declares the array as a local object. If I have to pass an array to a function, then I pass by reference, @abn; or I use an object that has an array assigned as a property.
But I am just curious why you use PRIVATE?
Thank you.
Greg
Greg
First, thank you for sharing your code. In the code, you declare the arrays as private:
Code:
private abn,aun,atn,atw,an
I am curious as to why? I have gotten away from using private variables since the scope of them is visible to called programs which in the past has caused me many issues before the LOCAL declaration came about. I have a check in my editor to show undeclared variables (which by default would be PRIVATE). For arrays, I use the following declaration:
Code:
LOCAL ARRAY abn[1], aun[1], atn[1], atw[1], an[1]
This initializes and declares the array as a local object. If I have to pass an array to a function, then I pass by reference, @abn; or I use an object that has an array assigned as a property.
But I am just curious why you use PRIVATE?
Thank you.
Greg
Greg