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: string f="Variabl1+Variable2*3.2+200"; 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 System.Text.RegularExpressions.Regex.Split(f, "+"); and use this replace code for all math operators that you want.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)