PDF-Forms is a service provided by PDFzone.com | http://www.pdfzone.com/ __________________________________________________________________

From that equation, you still have divisions by zero. The result of a division by zero is "infinity" or "-infinity". As you have your result field (probably) formatted as a number, you will get a type mismatch because "infinity" is not a number.

You would have to make sure _before_ you do any further calculations that there can be no division by zero involved (your result would be invalid anyway). You will also have to make sure to use event.value and field.value correctly. And, last, but not least, you will have to make sure that the dependencies between the subresults lead to the correct results.

Hope, this can help.


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 ]


______________________




I've got this formula:
form1 = number (for example: 0,5600)
form56 = number (for example: 116,00)
form60 = month (for example: 6)

var a = this.getField("form1");
var b = this.getField("form56");
var c = this.getField("form60");
if (this.getField("form60").value == "") {
this.getField("form61").value = ""
}
else {
event.value = (b.value / (415 * a.value)) * (75 / c.value);
}
When i fill in by form1 0,5000 and the format is ####,## he gives a error-message.
The format of form61 is also ####,##.
What is the problem ?



To change your subscription: http://www.pdfzone.com/discussions/lists-pdfforms.html



Reply via email to