Pass an object reference and the array name. For example I create a moverlist object in my app like so:
oBuilList=CREATEOBJECT('frmmoverlists',THISFORM,'abuilavail','abuilselected')
THISFORM passes the object reference to the form and abuilavail and abuilselected are array properties of my form.
I can then reference the calling forms array like this for example: THISFORM.oRef.&mcavail[1] ***Note the macro substitution because I pass the array names as character strings. HTH
>Hi all,
>
>Has anyone figured out the right syntax for passing an array property or an object to a function or method?
>
>All of these give me a syntax error, and I am out of ideas:
>
>@.aArray
>@this.aArray
>@thisform.thisobject.aArray
>@(.aArray)
>@(this.aArray)
>@(thisform.thisobject.aArray)
>
>TIA
>
>Regards,
Colin Magee
Team Leader, Systems Development
Metroland Media Group Ltd.
Mississauga, Ontario, Canada
cmagee@metroland.comNever mistake having a career with having a life.