Hi,
I created a custom class witch contains a collection of another custom class.
So it looks like this
myClass.init
myClass.getSubItem
When i want to access a subItem i do like this
why my method is not visible in runtime? I set it as public so it should be in the code scope.
I created a custom class witch contains a collection of another custom class.
So it looks like this
Code:
myClass
&& Attributes
subClassColl && Contains a collection of mySubClass
&& Methods
getSubItem && Gets the sub item at index n from subClassColl
myClass.init
Code:
&& myCollectionClass is a class with Collection as Baseclass
this.subClassColl = CREATEOBJECT("myCollectionClass")
myClass.getSubItem
Code:
LPARAMETERS idx
RETURN this.subClassColl.Item[idx]
When i want to access a subItem i do like this
Code:
&& myClassList is a class with Collection as Baseclass contained in my Form.
&& To get the first item by example if i do the following it says getProduit is not a member of myClass
thisform.myClassList.Item(0).getProduit(0).Code
&& but if i do the following i can access the subclass property
thisform.myClassList.Item(0).subClassColl.Item(0).subProperty
why my method is not visible in runtime? I set it as public so it should be in the code scope.