Hi all, I have a issue, a have a textbox which takes commands, the commands can be something like:
rp73{
rp36 {av 14, td 10} ,
td 35,
cc -1 1 -2
};
I have the code below so far and cant figure out how to make a command like the one below execute.
i give some commands in the text box then its executes the commands, something like turtle gaphics, i need to use the string format i think im really not familiar with strings. Any help pr advise thx
rp73{
rp36 {av 14, td 10} ,
td 35,
cc -1 1 -2
};
I have the code below so far and cant figure out how to make a command like the one below execute.
Code:
if (e.KeyChar == '\r')
{
String command = tbCommand.Text.ToLower().Trim();
if (command.Contains("="))
{
String[] ch = command.Split(new char[] { '=' });
ch[0] = ch[0].Trim();
else
{
String[] ch = commande.Split(new char[] { ' ' });
if (ch.Length == 2)