Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fox-like Macro Substitution?
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Fox-like Macro Substitution?
Miscellaneous
Thread ID:
00789037
Message ID:
00789037
Views:
77
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
Map
View

Click here to load this message in the networking platform