Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do I access the References collection in VB

Status
Not open for further replies.

WantsToLearn

Programmer
Feb 15, 2003
147
US
Before I start my code, I want to ensure that all the DLLs needed are present and not missing. How do I access that collection in VB? I know its there but I can't find it.

Thank you!
 
Project->References or Project->Components

Is that what you are after?
 
The only way to do that in VB would be to try and instantiate all classes at program launch. Build an error handler around it and you're done.

You could also check the prog id's in the registry but this does not absolutely guarantee that you're refrences are actually met, since there might be difference in versions (which probably results in differences in GUIDs as well).

Greetings,
Rick
 
Use application.references.count to know how many are active
& application.references.index(from 1 to application.references.count).name to know their name
 
Lascar, are you thinking about VBA? This is the VB6 forum

________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'If we're supposed to work in Hex, why have we only got A fingers?'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top