Solved

what is the best way to mange type records

Posted on 2008-10-09
4
152 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
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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

786 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