What field types are field #1 and #2? If they are integer, your script might
not work. I'm not sure how PF handles temporary variables; the field type of
variables might have to fit with the associated field type. If that's not it,
you might want to use different variable names, such as "temp" in line 3 (temp =
round result), but it doesn't seem like that should matter either.
If neither of the above suggestions help, I would recommend changing the script
to put the output of each step into field #2, to see where the script is
breaking down.
Dave
________________________________
From: Neal Aven <nealaven@...>
To: pendragon-forms@yahoogroups.com
Sent: Wednesday, July 22, 2009 9:31:05 AM
Subject: [pendragon-forms] Round to nearest 100
Hi all,
In field #2, I am trying to round a dollar value in field #1 to the nearest 100
but I am not having success with the script. Here's what I've got:
calculate:
result = $1 / 100
result = round result
answer = result * 100
On the handheld, this returns a value in field #2 of $0.00 every time.
Any suggestions?
Best regards,
Neal
[Non-text portions of this message have been removed]