|
-
February 15th, 2000, 02:09 PM
#1
Error or no error... this is the question!!!
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
-
February 15th, 2000, 02:21 PM
#2
Re: Error or no error... this is the question!!!
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|