Unfortunately the 5 territory thing was just a simplified example meant to demo the
idea. The real thing is quite a bit more complex. And the 50 thing was 50 U.S.
states. That one can be safely hardcoded in :D.
At one point in an effort to ease maintenance concerns we tried the db route, but
And of course removing the cfdump wouldn't hurt ;-)
-Original Message-
From: Matthew Walker [mailto:[EMAIL PROTECTED]
Sent: Thursday, 27 March 2003 12:01 p.m.
To: CF-Talk
Subject: RE: Using variables in a Switch case?
How about
p Web
http://www.electricsheep.co.nz/
-Original Message-
From: Matt Robertson [mailto:[EMAIL PROTECTED]
Sent: Thursday, 27 March 2003 11:53 a.m.
To: CF-Talk
Subject: RE: Using variables in a Switch case?
I knew when I posted that I'd be in for it :)
Like I said I converted a gigantic app into CF
If you have a situation with 50 possible branchs, with 50 different
pieces of logic (imagine that flowchart! lol), hard-coding the
branches conditions would seem at least from my point of view, the
wrong way to go about it. If you already have 50, the chances are that
the conditions will change as
programmers are probably groaning now. ;)
>
>---
>James Ang
>Sr. Developer/Product Engineer
>MedSeek, Inc.
>[EMAIL PROTECTED]
>
>
>
>-Original Message-----
>From: Matt Robertson [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, March 26, 2003
PROTECTED]
Sent: Wednesday, March 26, 2003 3:26 PM
To: CF-Talk
Subject: RE: Using variables in a Switch case?
James wrote:
>Uhm.. If..elseif..elseif..elseif..etc..else..endif
and
>CFMX has the same "problem".
And rest assured it is a problem that is not afflicted on every
lan
26, 2003 3:26 PM
> To: CF-Talk
> Subject: RE: Using variables in a Switch case?
>
>
> James wrote:
> >Uhm.. If..elseif..elseif..elseif..etc..else..endif
> and
> >CFMX has the same "problem".
>
> And rest assured it is a problem that is not afflicted on
James wrote:
>Uhm.. If..elseif..elseif..elseif..etc..else..endif
and
>CFMX has the same "problem".
And rest assured it is a problem that is not afflicted on every language. I posted a
feature request for this functionality and some others to Macromedia and it didn't get
anywhere. My impression
IDs in the application.cfm, AND the
page with the switch block.
Thanks anyways.
Shawn
-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 4:07 PM
To: CF-Talk
Subject: RE: Using variables in a Switch case?
You could do this:
-- main_te
AudienceCentral (formerly PIER System, Inc.)
[EMAIL PROTECTED]
voice : 360.765.8080 x12
fax : 360.647.5351
www.audiencecentral.com
> -Original Message-
> From: Shawn Grover [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, March 26, 2003 2:46 PM
> To: CF-Talk
> Subject: Using
as the same "problem".
---
James Ang
Sr. Developer/Product Engineer
MedSeek, Inc.
[EMAIL PROTECTED]
-Original Message-
From: Shawn Grover [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 2:46 PM
To: CF-Talk
Subject: Using variables in a Switch
CF 5 doesn't like this:
Two
three
It throws an error saying the cfcase must have a constant value. So, if I
do this instead:
Two
three
all works as expec
12 matches
Mail list logo