Quote:I think you have to save the exactly formula in database and when you want to use it, process the formula string using replace method. you should get Variabl1,Variable2 data and use this code:
f= System.Text.RegularExpressions.Regex.Replace(f, "Variabl1", TxBxVar1.Text);
f= System.Text.RegularExpressions.Regex.Replace(f, "Variabl2", TxBxVar2.Text);
and then process f to run the formula. for run you can use
and use this replace code for all math operators that you want.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)