problem with calculation within a script

General support questions.
Posts: 68
Joined: Tue Jan 25, 2005 1:45 pm
PostPosted: Tue Jul 26, 2005 7:30 am
I could use some help with this calculation; it is part of a script.

We are on FM6

Case( Revision # = 0,"R1", Revision # > 1,"R2", Revision # > 2, "R3")

I want the revision # to go from an empty field to R1 then to R2 then to R3, etc. Clicking a button triggers the script which also fills in two other fields.

Currently the script goes from empty to R1, then R1 to R2, but will not go to R3.

thanks for the help. :P :P
JIMBO
PostPosted: Fri Aug 12, 2005 11:53 am
I hope you got my e-mail, Jimbo.
I THINK it has the solution to your problem...
.
:D
PostPosted: Fri Aug 12, 2005 12:36 pm
no i have not seen an email :D
SeedCode Staff
SeedCode Staff
Posts: 2764
Joined: Thu Nov 20, 2003 11:01 am
PostPosted: Sat Aug 13, 2005 3:38 am
Hi Jim,

You'll just want to change the order of the tests in your case statement: FileMaker stops evaluating at the first matching test (>1) and won't go on to test for > 2, etc if the record number is already greater than 1. "Case" is a "first match" not a "best fit" test.

Hope that helps,

John
John Sindelar
SeedCode
PostPosted: Sat Aug 13, 2005 11:40 am
What is Filemaker's "best fit" test?
PostPosted: Sun Aug 14, 2005 5:13 pm
LookupNext ()

Return to General Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron
(855) SEEDCODE
[email protected]
Follow us: