Re: Using variables in a Switch case?

2003-03-26 Thread Matt Robertson
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

RE: Using variables in a Switch case?

2003-03-26 Thread Matthew Walker
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

RE: Using variables in a Switch case?

2003-03-26 Thread Matthew Walker
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

Re: Using variables in a Switch case?

2003-03-26 Thread jon hall
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

RE: Using variables in a Switch case?

2003-03-26 Thread Matt Robertson
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

RE: Using variables in a Switch case?

2003-03-26 Thread James Ang
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

RE: Using variables in a Switch case?

2003-03-26 Thread Barney Boisvert
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

RE: Using variables in a Switch case?

2003-03-26 Thread Matt Robertson
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

RE: Using variables in a Switch case?

2003-03-26 Thread Shawn Grover
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

RE: Using variables in a Switch case?

2003-03-26 Thread Barney Boisvert
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

RE: Using variables in a Switch case?

2003-03-26 Thread James Ang
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

Using variables in a Switch case?

2003-03-26 Thread Shawn Grover
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