How to Instantiate a Class a runtime from a String value


Author
Message
Paul Chase
Paul Chase
Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)Advanced StrataFrame User (576 reputation)
Group: Forum Members
Posts: 414, Visits: 2.8K
I remember seeing how to do this using reflection but cannot remember how it was done. Below is psuedo code of what I want to do.

public sub whatever(classname as string)

dim something as new classname

end sub

Thanks

Paul

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Paul Chase - 18 Years Ago
StrataFrame Team - 18 Years Ago
Paul Chase - 18 Years Ago
StrataFrame Team - 18 Years Ago
                     Right ... after understanding Serialization, this is my next...
Ivan George Borges - 18 Years Ago
                         Don't worry Ivan i have full faith that as soon as we get comfortable...
Paul Chase - 18 Years Ago
                             [quote]Reflection seems like macro substitution "&" in foxpro but on...
Trent L. Taylor - 18 Years Ago
                                 :D You have that right!!
Paul Chase - 18 Years Ago
                             [quote][b]Paul Chase (10/26/2006)[/b][hr]Don't worry Ivan i have full...
Ivan George Borges - 18 Years Ago
                                 Ivan, You made me laugh :hehe: Your posts are always enjoyable to...
Trent L. Taylor - 18 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search