Hi Vassilis To directly access an item inside a collection for filling a property, you can use collection[index] or collection(index) (like it's an array)
This is also handy when trying to access a value in the watch window As you've probably seen, debugging values inside a collection in the debugger using the item() is impossible. Accessing the collection as if it's an array makes it possible.
BTW, Changing the value of the collection-item is impossible, even when using the array-like approach. So oCol(2) = "test" doesn't work.
Regards, Sietse Wijnker
> -----Original Message----- > From: profoxtech-bounces .AT. leafe .D.O.T com > [mailto:profoxtech-bounces@leafe.com] On Behalf Of Vassilis Aggelakos > Sent: maandag 31 juli 2006 14:46 > To: profoxtech .AT. leafe .D.O.T com > Subject: Re: a collection issue > > Thanks Mal, > > I use collections in my apps very frequently. Usually I have > a simple ColItem class that looks like this: > > DEFINE CLASS myColItem AS Custom > > Key = .null. > Value = .null. > TagInfo = .null. > oChild = .null. > > ENDDEFINE > > I add this object to my collection and everything is fine > when I want to modify a value but playing now with > collections I thought that I have missed something obvious. > > Thank you very much > > -V
©2006 Sietse Wijnker |