Click here to Skip to main content
14,927,528 members
Please Sign up or sign in to vote.
2.33/5 (2 votes)
See more:
Dear Sir/Madam,

In my project i want add one formula Creation form.
This form user Directly add formula and save. Then use the back end calcualtion
I have set Dropdown tools in (,),+,*,^,/,a,b,c,d,e,f,-

How to Validate the formula correct or not
Please any one give sample
Posted
Comments
Ahmed Bensaid 7-Feb-14 6:06am
   
Your question isn't clear ...
njammy 7-Feb-14 6:19am
   
Please post your markup and current code behind so far.
JoCodes 7-Feb-14 10:20am
   
Make the Question clear and also tell what formula or what you want to validate?

1 solution

you should have to use paser to solve your problem. IF your operations are simple then it may possible through regular expression.
   
Comments
NitishBharadwaj 8-Feb-14 4:29am
   
There r many formula that user want to ensert its impossible to validate each formula if you want to work on specific formula then you can use reguler ex.
NitishBharadwaj 8-Feb-14 4:29am
   
There r many formula that user want to insert its impossible to validate each formula if you want to work on specific formula then you can use reguler ex.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900