On Aug 25, 2006, at 3:40 AM, Christian Schmitz wrote:

Alexander Cohen <[EMAIL PROTECTED]> wrote:

Does anyone know of any code hacks that would allow a developer to
instantiate a custom class from within the IDE by name?

example:
dim instance as Object = NewInstanceOfObjectByName("MyCustomClass")

I've this in my plugins for some time now:

NewInstanceMBS(ClassName as string) as object

Can be used like this:

dim o as Object
dim d as Dictionary

o=NewInstanceMBS("Dictionary")
if o isa Dictionary then
  d=Dictionary(o)
end if

Right. But you always have to cast the object to make it useful so I'm not sure why a factory would not work
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to