Solved

Collection objects editable?

Posted on 2001-06-20
2
169 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
2 Comments
 
LVL 3

Accepted Solution

by:
rmichels earned 50 total points
Comment Utility
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
Comment Utility
Well that works. It's strange that just using a UDT doesn't work. Oh well.

Zaphod.
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
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 Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

728 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now