Hello,
I've got a problem with some percent calculation in a form.
The following script always causes an error message when opening the form.
But the script for the field "success" works as I want it to.
**************************************************************
round(100 / Form1.Page1.Body.Counters1.SUM1 * Form1.Page1.Body.Counters2.SUM2, 2)
**************************************************************
The error message is german, so i try to translate it:
**************************************************************
Script failed: (Language is FormCalc; Context is xfaform[0]...Form1.Page1.Body.Success
Script is: round(100 / Form1.Page1.Body.Counters1.SUM1 * Form1.Page1.Body.Counters2.SUM2, 2)
Error: Arithmetic Over-/Underrun
**************************************************************
I found nothing about this error on adobe's websites, FormCalc manuals or google, that was helpful.
Is there a way to hide the error message or even a solution for the error itself?
Now, what is the value of 100 or any number divided by zero?
You need to preform a logical test for a zero value and then decide how to handle that situation.
George Kaiser