Solved

what is the best way to mange type records

Posted on 2008-10-09
4
155 Views
Last Modified: 2012-05-05
I want to create a use type called LibraryInfo
Public Type LibraryInfo
    Id As Long
    Name As String
    DocPath As String
    Connection As String
End Type

Which contains the infomation for the dirrerent Library Databases that I can connect to.
What is the best way to manage a collection of libraries?

I want to be able to
Add
Traverse
Search

to the collection of library



0
Comment
Question by:keptins
[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
4 Comments
 
LVL 92

Expert Comment

by:Patrick Matthews
ID: 22682512
keptins said:
>>What is the best way to manage a collection of libraries?

1) Create an array of type LibraryInfo
2) Create a Collection and add your LibraryInfo items to it
3) (my favorite) create custom classes, one class as the container collection and another class defining each instance
0
 

Author Comment

by:keptins
ID: 22682584
let me explain what i'm doing
I have a lot of SQL Database that are document libraries.
I'm trying to create a utility that can connect to any libray and perform a function or series of functions.
I've tried to create a collection
bit it would not take the user type... unless I did something wrong
0
 
LVL 29

Accepted Solution

by:
nffvrxqgrcfqvvc earned 125 total points
ID: 22683660
If I understand your question then maybe you want to look into something like this
http://msdn.microsoft.com/en-us/library/aa260635(VS.60).aspx
0
 

Author Closing Comment

by:keptins
ID: 31504796
This is what I want to accomplish..
I've not dealt with classes so look for more questions.
thanks
0

Featured Post

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

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 designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

734 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