>I am trying to store an array to "this" property but I can't successful. Does "this" can do it?
>
>Sunny
I think you want to have an property of the THIS object that is an array.
If you are using the class designer, add a property using the class menu, but when you type the name for your new property, add (1) to the end
e.g.
ArrayDemo(1)
If you are using code directly to define your class, here is an example.
PROCEDURE test
LOCAL loDemo
loDemo = CREATEOBJECT( "MyCustomObj")
DIMENSION loDemo.ArrayProp( 2)
loDemo.ArrayProp(1) = "Hello"
loDemo.ArrayProp(2) = "Goodbye"
? laDemo.ArrayProp(1)
? laDemo.ArrayProp(2)
DEFINE CLASS MyCustomObj AS Custom
DIMENSION ArrayProp(1)
ENDDEFINE