How can we save a formula into a table in my operation, I used to formula (Formula I can be dynamically created by the user)
formula axample
Variabl1+Variable2*3.2+200
this formula isn’t const.
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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:
and then process
fto run the formula. for run you can useand use this replace code for all math operators that you want.
note: this is my way. but maybe there is another ways in c# that I don’t know.