Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro substitution in c#
Message
From
13/07/2016 03:19:46
 
 
To
12/07/2016 17:42:17
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01638288
Message ID:
01638307
Views:
79
>Is there are way you can execute a marco-substitution in c#, like you can in VFP?
>In VFP it's something like this:
>
>use sometable
>lcCmd = "BROWSE"
>&lcCmd
>
>
>Is there a way you can do something like it in c#?
>
>Thanks.

Not easily (and probably not advisable). You can use the CSharpCodeProvider to create and compile code, then use reflection to execute.
Simple example here : http://www.codeproject.com/Tips/715891/Compiling-Csharp-Code-at-Runtime
What's your real scenario - there is probably a better way of achieving what you need.....
Previous
Reply
Map
View

Click here to load this message in the networking platform