Hello, I'm trying to Convert "{MATH}TextBoxC1+TextBoxC1" to "TextBox1.Text=Convert.ToString(Convert.ToInt32(TextBoxC1.Text)+Convert.ToInt32(TextBoxC1.Text)); but doing it using one textbox.. I'm making a software creator. Everything was working well but this... Thanks in advance
string svs = texttyped; //which is "{MATH}TextBoxC1+TextBoxC1
svs = svs.Remove(0, 6);
string x = controlname + ".Text=Convert.ToString(Convert.ToInt32("; //ControlName = "TextBox1"
while (svs != "")
{
while (svs != "" || !svs.StartsWith("*") || !svs.StartsWith("/") || !svs.StartsWith("+") || !svs.StartsWith("-"))
{
try
{
x += svs.Remove(1);
svs = svs.Remove(0, 1);
}
catch { x += svs; svs = ""; break; }
}
if (svs != "")
{
x = x + ")" + svs.Remove(1) + "Convert.ToInt32(";
}
x += ".Text));";
}