While you can add arrays to an object as Thierry pointed out, you might want to consider using a Collection instead. Arrays on objects (and anywhere else) are a pain in the butt, due to how they are passed, can't be returned as values, deal with 'empty' arrays etc.
If you're starting something new, I'd consider avoiding arrays.
+++ Rick ---
>Hi All:
>
>I can't figure out how to add an array as a property to an object. Right now I have this:
>
>
>DEFINE CLASS STUFF AS CUSTOM
>
> NAME = "stuff"
> aColumns[1] = 0
>
> PROCEDURE INIT
>
> ENDPROC
>
>ENDDEFINE
>
>
>Then in the program I say:
>
>
>_SCREEN.ADDOBJECT('oStuff','Stuff')
>DIMENSION laColumns[RECCOUNT('curCustomers')]
>ACOPY(laColumns,_screen.oStuff.aColumns)
>
>
>OR
>
>
>_SCREEN.ADDOBJECT('oStuff','Stuff')
>DIMENSION _screen.oStuff.aColumns[RECCOUNT('curCustomers')]
>
>
>In both cases I get an error:
>
>
>'ACOLUMNS' is not an array
>
>
>Thanks,
>
>Yossi