Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 187
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

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