General information
Title:
Fox-like Macro Substitution?
Is there a way to do a Foxpro-like macro substitution in C# or VB.net?
I want to be able to read a SQL table that lists class names, and instantiate an object from a class name value - something like (using the Foxpro '&' macro substitution character) :
readvar = (results of a some SQL query I run);
Object o = new &readvar();
- or -
&readvar o = new &readvar();
The classes are included in the references of the solution. I just want to be able to instantiate the objects based on the form interaction. I realize I could just code the whole process - use a long switch, etc... I just wondered if I could it could be done another way.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only