Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Runtime evaluation of C# code...
Message
From
23/10/2002 21:57:51
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
Runtime evaluation of C# code...
Miscellaneous
Thread ID:
00714629
Message ID:
00714629
Views:
51
Is there an equivalent to 'macro expansion' that exists in VFP?

For instance, I'd like to be able to do stuff like the following:

string cForm;
cForm = "CustomerForm";
string cCmd;

cCmd = cForm + " oFrm = new " + cForm + "()";
&cCmd;
cCmd = "oFrm.Show()";
&cCmd;

I realize the '&' is completely different in C, but was curious if macro expansion in VFP is available in C#, so that I can execute commands dynamically.


Thanks,
Kevin
Next
Reply
Map
View

Click here to load this message in the networking platform