From: "Haseloff, Lutz" <Lutz.Haseloff@mdf.brandenburg.de>
Cc: ntg-context@ntg.nl
Subject: Re: calculate in forms
Date: Tue, 28 Dec 1999 11:19:40 +0100 [thread overview]
Message-ID: <0F3313EC125AD311981100105AB3A75D1EA5B5@N0795.mdf.fvbb.de> (raw)
Hi Hans, Hi all,
> \startJSpreamble {Calculate} used now
> function Calculate ()
> { v = getField("Ergebnis") ; v.value = 0 ;
> v.value += getField("Summand1").value ;
> v.value += getField("Summand2").value }
> \stopJSpreamble
This treats the values like strings if they contain other seperators as a
dot
I changed your solution to:
\startJSpreamble {Calculate} used now
function Calculate ()
{ v = getField("Ergebnis") ; v.value = 0 ;
v.value += AFMakeNumber(getField("Summand1").value) ;
v.value += AFMakeNumber(getField("Summand2").value) }
\stopJSpreamble
and this works very nice for me.
Thank you very much
Happy New Year
Lutz
next reply other threads:[~1999-12-28 10:19 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-12-28 10:19 Haseloff, Lutz [this message]
-- strict thread matches above, loose matches on Subject: below --
1999-12-20 14:48 Haseloff, Lutz
1999-12-20 15:54 ` Hans Hagen
1999-12-22 21:47 ` Hans Hagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=0F3313EC125AD311981100105AB3A75D1EA5B5@N0795.mdf.fvbb.de \
--to=lutz.haseloff@mdf.brandenburg.de \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).