Newbies seabreezefarm Posted May 26, 2011 Newbies Posted May 26, 2011 I'm looking to create a field in an invoice solution that will parse and evaluate math expressions on the fly. For example, I would like to be able to enter in the "Quantity" field, an expression such as 19+123, or 37.56/7, and have the field automagically convert it to the appropriate result. Any ideas on how to do this? Is there a custom function or plug in for this? Thanks much, George Page seabreezefarm.net
comment Posted May 26, 2011 Posted May 26, 2011 You could use the Evaluate() function for this. However, you need to provide for user entering a non-valid expression.
Newbies seabreezefarm Posted May 26, 2011 Author Newbies Posted May 26, 2011 You could use the Evaluate() function for this. However, you need to provide for user entering a non-valid expression. Nice! That works great. Is there a generic provision for evaluating the non-valid expressions?
comment Posted May 26, 2011 Posted May 26, 2011 See; http://www.filemaker.com/11help/html/func_ref3.33.14.html#1028187 http://www.filemaker.com/11help/html/func_ref3.33.5.html#1027784
FMPierce Posted September 23, 2011 Posted September 23, 2011 I'm making a DB that you can put a formula into and it will evaluate it, the only problem was I did'nt have any way to see if it was valid this helped a lot. :thankyou2:
bcooney Posted September 23, 2011 Posted September 23, 2011 Automatic message This topic has been moved from "Database Schema & Business Logic → Custom Functions" to "Database Schema & Business Logic → Calculation Engine (Define Fields)".
Recommended Posts
This topic is 4868 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now