StrataFrame Forum

Macro Substitution like VFP... Challenge

http://forum.strataframe.net/Topic30265.aspx

By Ross L. Rooker, Sr. - 8/24/2011

Is it possible to build a string with a command and then execute that command. Example, lets say you start with a variable such as:

string myCommand = "SELECT * FROM tblMaster";

What would be the C# code to execute that command?

The assumption her is that the myCommand could be any command.