[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

Collection objects editable?

Posted on 2001-06-20
2
Medium Priority
?
183 Views
Last Modified: 2010-05-02
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
Comment
Question by:Z_Beeblebrox
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
rmichels earned 200 total points
ID: 6212969
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
 
LVL 7

Author Comment

by:Z_Beeblebrox
ID: 6214909
Well that works. It's strange that just using a UDT doesn't work. Oh well.

Zaphod.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

649 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question