PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/ __________________________________________________________________
This is a big case of UBS ehh.... oooops...
I claimed:
This will lead to the problems, but if we do the calculation only when b.value is not zero, we will be on the safe side:
if (b.value * 1) == 0) { event.value = a.value / b.value ; }
By multiplying b.value with 1, we make sure that we have a valid number.
And that is pure and applied Quatsch...
Correct would be:
if (b.value * 1) != 0) {
event.value = a.value / b.value ;
}
I apologize for the mess-up.
Max Wyss PRODOK Engineering Low Paper workflows, Smart documents, PDF forms CH-8906 Bonstetten, Switzerland
Fax: +41 1 700 20 37 or +1 815 425 6566 e-mail: mailto:[EMAIL PROTECTED] http://www.prodok.com
[ Building Bridges for Information ]
______________________
Shameless Plug:
My next conference appearances and workshops:
• Conference presentations at the 2004 Symposium of the BFMA, May 23 to 27 in Reno, Nevada (http://www.bfma.org) and pre-/post-conference workshop, May 22/23 and 27, organized by essociates Group (http://www.essociatesgroup.com/AdvancedAcrobatForms.htm)
• And, as always, available for on-site workshops/tutorials/consulting.
_________________________
To change your subscription: http://www.pdfzone.com/discussions/lists-pdfforms.html
