Link to home
Start Free TrialLog in
Avatar of hpet
hpet

asked on

Set statement

Hi,

what is best solution to solve this "problem":
-let's say you have a toolbar with some buttons on it
-let's say you have few  ActiveX DLL's (each of them shows one form... for example)

Now, is there a way to create reference to it with Set <MyObject> = New <ClassName>
where MyObject and ClassName are strings read from pushed button's tag or description field? (for example)
I would like to automate all this, so i don't have  to write too many IF's.
I would like that "Set MyObject = New ClassName"  is build from strings and then executed?
Is there any way to do it? or is there any other better way of doing it?

Thanks already for your answers,
-Peter
ASKER CERTIFIED SOLUTION
Avatar of Mirkwood
Mirkwood

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of hpet
hpet

ASKER

Thanks