Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

switch in a CFSCRIPT tag...pulling out hair in clumps!

Status
Not open for further replies.

KevinFSI

Programmer
Nov 17, 2000
582
US
This should be simple.

This statement works:
Code:
<CFSWITCH EXPRESSION=&quot;#lost_time_type#&quot;>
   <CFCASE VALUE=&quot;1&quot;>
      <CFSET interrupt = interrupt + lost_time_qty>
   </CFCASE>
   <CFCASE VALUE=&quot;2&quot;>
      <CFSET lost = lost + lost_time_qty>
   </CFCASE>
   <CFCASE VALUE=&quot;3&quot;>
      <CFSET delay = delay + lost_time_qty>
   </CFCASE>
</CFSWITCH>

This statement does not:
Code:
<CFSCRIPT>
   switch (lost_time_type)
   {
      case 1 :
         interrupt = interrupt + lost_time_qty;
      case 2 :
         lost = lost + lost_time_qty;
      case 3 :
         delay = delay + lost_time_qty;
   }	
</CFSCRIPT>

Am I writing it wrong??????????
Kevin
slanek@ssd.fsi.com
 
Disregard. I put break statements in there and that fixed it. Kevin
slanek@ssd.fsi.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top