Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Compilation Error when using Array in the Class
Message
From
26/08/2002 06:28:07
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Title:
Compilation Error when using Array in the Class
Miscellaneous
Thread ID:
00693561
Message ID:
00693561
Views:
49
Hello,

i get strange compilation error when i want to use an array as parameter to one of the functions of my class

e.g.:
Function Blablabla
LPARAMETERS laArray

LOCAL lnArraySize, someString
lnArraySize = ALEN(laArray,1)
someString = ""

FOR xj = 1 TO lnArraySize
   someString = someString + someFunction(laArray[xj,2]) + someOtherString
ENDFOR

RETURN someString
ENDFUNC
the error is:
"Unknown LAARRAY - Undefined"

when i just issue "set procedure to myLibrary.prg" and create an instance of the class in the command window and then pass in an array to the function it's works just fine

how can i get rid of compilation error ?

TIA

Christian
Next
Reply
Map
View

Click here to load this message in the networking platform