OK :-) ok, must was a tad strong....you certainly should have one as it
makes good sense,  but each to their own I suppose....



-----Original Message-----
From: Tangorre, Michael [mailto:[EMAIL PROTECTED]
Sent: 06 March 2003 14:54
To: CF-Talk
Subject: RE: Cfcase


you are incorrect. You do not need to have a default case... if you do not
have a case that matches your expression nothing happens.

<cfset name="ron">
<cfswitch expression="#name#">
        <cfcase value="mike">hi mike</cfcase>
        <cfcase value="earl">hi earl</cfcase>
</cfswitch>

nothing is output because ron has no case.
no error is given either, even though there is no default case.

Mike



-----Original Message-----
From: Robertson-Ravo, Neil (RX)
[mailto:[EMAIL PROTECTED]
Sent: Thursday, March 06, 2003 9:34 AM
To: CF-Talk
Subject: RE: Cfcase


With CFSWITCH, you must have a CFDEFAULTCASE and it must be the last entry
in the switch.  



-----Original Message-----
From: Mark Leder [mailto:[EMAIL PROTECTED]
Sent: 06 March 2003 14:35
To: CF-Talk
Subject: Cfcase


Is it possible to place CFIF statements inside a CFCASE?  When I do this, I
get an error that I can't have a CFCASE after a CFDEFAULTCASE, even though
there are no CFDEFAULTCASE statements in the code.  Removing this CFIF
statement makes everything work ...

Thanks, Mark 




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to