Click to See Complete Forum and Search --> : Error or no error... this is the question!!!


isabelle
February 15th, 2000, 01:09 PM
If the name of the librairy is "a" and the class on that librairy is "b", I use the CreateObject like this:
Private obj as Object
Set obj = CreateObject ("a.b")

Is it correct?
If not, can you tell me the good way?
If yes, can you tell me why I got a 429 run-time error every time I tried?

Thanks a lot for all help you can give me,
Isabelle

Kyle Burns
February 15th, 2000, 01:21 PM
As long as library "a" is registered on your machine, this should work. Check to see when you go to "Project...References" if "a" appears in the list. If it doesn't, you need to register the library. If it does, try setting a reference to it and running your code like this:

Dim obj as a.b

set obj = new a.b



This will give you many advantages over late binding.