modules in a library DB reference an instance defined in main DB

G

Guest

Modules in a library database should be able to reference an instance of a
class that is defined in the main database
 
G

Guest

Yes I know that trick, but once you have instanced the class in the main
database and then need to use its return values in the library database e.g.
for a form, you can't do this can you?
 
P

Paul Overway

No. In that case, you would need to pass your instance of that class to
whatever routine requires it. But that would apply in any case, i.e., even
within the main database you couldn't instantiate an object and then use
that object within another routine, unless the object was declared globally.

I haven't tested it, but if the object is declared globally in the main DB,
it might be accessible within the library DB. Nevertheless, passing a
reference to the object would be better in practice.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top