Article ID: 193077
Article Last Modified on 8/21/1999
LOCAL loCustObj, laTest[3]
Clear
* Populate array.
laTest[1] = 'One'
laTest[2] = 'Two'
laTest[3] = 'Three'
* Pass array to cst1 Init by reference in CREATEOBJECT()
loCustObj = CREATEOBJECT('cst1', @laTest)
* Pass array to cst1 Init by reference in AddObject()
loCustObj.AddObject('cst2','cst1', @laTest)
?loCustObj.aprop[2]
?loCustObj.cst2.aprop[2]
DEFINE CLASS cst1 AS custom
DIMENSION aprop[1]
PROC Init
LPARAMETER taArray
* Error "'TAARRAY' is not an array." occurs here from AddObject
=ACOPY(taArray, this.aprop)
ENDPROC
ENDDEFINE
Additional query words: kbVFp600fix kbVFp500abug kbOOP
Keywords: kbbug kbfix kbcode KB193077