When I try to build project, I get this error:
Program d:\windowwizard\prgs\winwizprocs.prg has the following errors:
Unknown AARRAY - Undefined
Form d:\windowwizard\forms\frmcustomerentry.scx has the following errors:
Unknown ALEADTYPE - Undefined
Here is the source code in the project I am trying to build:
Public aLeadtype
Dimension aLeadtype[5,2]
fillarray(@aLeadtype,"'A','Architect','B','Builder','P','Private
Owner','R','Renovator','D','Dealer'")
Function Fillarray(aArray, cValues)
Local nLen,i,cValtype
for i = 1 to alen(aArray)
cVal=token(cValues,',',i)
do case
case type(cVal)='L'
aArray[i] = evaluate(cVal)
case type(cVal)='C'
aArray[i] = strtran(cVal,"'",'')
otherwise
aArray[i] = val(cVal)
endcase
next
return aArray
Any ideas are greatly appreciated. BTW, Token is another function that I
wrote and that function works flawlessly and returns expected values.
Thanks.