Solved

what is the best way to mange type records

Posted on 2008-10-09
4
150 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
  • 2
4 Comments
 
LVL 92

Expert Comment

by:Patrick Matthews
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
This is what I want to accomplish..
I've not dealt with classes so look for more questions.
thanks
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
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…
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…

772 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

10 Experts available now in Live!

Get 1:1 Help Now