Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 161
  • Last Modified:

what is the best way to mange type records

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
keptins
Asked:
keptins
  • 2
1 Solution
 
Patrick MatthewsCommented:
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
 
keptinsAuthor Commented:
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
 
nffvrxqgrcfqvvcCommented:
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
 
keptinsAuthor Commented:
This is what I want to accomplish..
I've not dealt with classes so look for more questions.
thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now