• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 185
  • Last Modified:

Collection objects editable?

Hi,

Is it possible to edit a UDT after it has been added to a collection? I want to do the following:

colRows.Item(lngCurrRecord).arrFields(Index) = Value

As far as I can tell the only way to do this is to set a variable equal to the udt, remove the item from the collection, change the udt, then re-add it to the collection, which is not very clean or efficient.

Zaphod.
0
Z_Beeblebrox
Asked:
Z_Beeblebrox
1 Solution
 
rmichelsCommented:
What I generally do is create an object that wraps the UDT.  Then use methods on the object to access the internal components of the UDT
0
 
Z_BeeblebroxAuthor Commented:
Well that works. It's strange that just using a UDT doesn't work. Oh well.

Zaphod.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now