Solved

Determining classes in existence

Posted on 2004-10-15
2
149 Views
Last Modified: 2011-09-20
Folks,

I'm developing a one-program-does-everything system. The idea is mainly to get away from my usual write a bit of code to solve a problem and then forget it, or where it was done.

At present I'm doing this by creating various classes with the required functionality and, on a very basic scale, allowing them to communicate with each other.

I'm using a single form to create instances of the classes which may in turn create instances of other classes.

My question is : can I determine what classes are in existence (and use them) and from where can I do this  (I'm assuming at the moment that classes instantiated from the form are "visible" to the form and classes instantiated from 'other' classes are "visible" to the 'other' classes only)?

I have heard mention of using collections to do something like this. If I understand correctly, this is also heading in the direction of "persistence" that I have read bout in relation to ActiveX controls.
0
Comment
Question by:Mikkil
2 Comments
 
LVL 26

Accepted Solution

by:
EDDYKT earned 350 total points
ID: 12317945
0
 

Author Comment

by:Mikkil
ID: 12326632
Eddykt,

Thanks for your comment.

I mentioned Activex at the end of my question, but I am not using ActiveX in the project.

Am I wrong or is your comment more tailored towards Activex with the registry acess etc ? I thought there might be something simpler i.e. the form object having collections that are added to when a class is called from it etc.

The code sounds very interesting.

I'm increasing the ponts as there is information I haven't looked for being sent.

Thanks

Mikkil
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Use closed file on desktop in vba 6 67
VBA color chart bars 12 78
A macro to Count the number of rows across all worksheets 3 83
vbModal 12 37
Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now