>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-RuntimeWhat's your real scenario - there is probably a better way of achieving what you need.....