Hi,
I am just 'playing' a bit with classes these days. I would like to use a few classes in my
codelibrary. (mde)
I read (and noticed) that you can't use a class directly when the class is referenced and
is not present in the database from where the class is used.
So I Googled a lot on this and found 2 solutions. 1 safe way (documented) and 1 unsafe
(undocumented) way.
The called 'Safe way' is to create a public function in the library to return an instance
of the class.
So I have a class clsMyClass and use a public function like:
Public fclsMyClass () as clsMyClass
set fclsMyClass = New clsMyClass
end function
I reference the codelibrary and in a standard forms_module I use:
Dim mc as Object
Set mc=fclsMyClass
'Do stuff ...
set mc = Nothing
The code works, the properties are there BUT intellisense does NOT work ??
Am I doing something wrong here?
The unsafe way is changing an attibute (VB_Exposed) by exporting/importing.
I also tried the unsafe way (maybe the wrong way ?), and suddenly I had a lot of 'unknown
errors' when opening the vb-project.
BTW, I am using A2k.
Any ideas?
Thanks
Arno R