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


Thanks Max

This formula works great.

Louise

This e-mail may contain confidential and/or privileged material; it is for
the intended addressee (s) only. If you are not a named addressee, you must
not use, retain or disclose such information. Serco cannot guarantee that
the e-mail or any attachments are free from viruses. Serco is not
responsible for any changes made to this e-mail after transmission.

Le pr�sent message peut contenir des renseignements de nature privil�gi�e
et confidentielle; il s'addresse uniquement au(x) destinataire(s) voulu(s).
Si vous n'�tes pas le destinataire pr�vu, vous �tes tenu de ne pas
utiliser, conserver ou divulguer l'information. Serco ne peut garantir
l'absence de virus dans ce courriel ou dans ses annexes. Serco n'est pas
responsable de toute modification � ce message suite � sa diffusion.


                                                                                       
              
                    Max Wyss                                                           
              
                    <[EMAIL PROTECTED]>              To:     [EMAIL PROTECTED]         
       
                    Sent by:                      cc:     Justice Gradowitz            
              
                    [EMAIL PROTECTED]        <[EMAIL PROTECTED]>                       
                    dfzone.com                    Subject:     Re: [PDF-Forms] 
Calculation of fields 
                                                   - division: CORRECTION              
              
                                                                                       
              
                    29/04/2004 03:31 PM                                                
              
                    Please respond to                                                  
              
                    pdf-forms                                                          
              
                                                                                       
              
                                                                                       
              





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

I just checked the following code in Acrobat 6 (easier to debug <g>),
and this one definitely works:

     var a = this.getField("a") ;
     var b = this.getField("b") ;

     if (b.value * 1 != 0) {
     event.value = a.value / b.value ;
     }

This above code is assigned to the Calculate event of the result field.

Note that you might add semicolons at the end of the statements (they
are not mandatory, but sometimes you may encounter weird behavior).

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 ]


______________________



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.


_________________________



> Thanks Max.  I tried this correction and it still does not work? It
> thinks there is a syntax error in the calc on line 3.  Can you check it
> out?
>
> var a = this.getField("a")
> var b = this.getField("b")
> if (b.value * 1) != 0)
> {event.value = a.value / b.value}
>
>


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






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

Reply via email to