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: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Vassilis Aggelakos
> Sent: maandag 31 juli 2006 14:46
> To: [EMAIL PROTECTED]
> 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



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to