How about if you put # sign's around insert_counter in
the first cfswitch expression?
Heidi

--- JB Mentzer <[EMAIL PROTECTED]> wrote:
> Hi all
> 
> I'm attempting to overwrite the index value of a
> CFLOOP from within the
> loop:
> 
> <CFLOOP FROM="1" TO="288" INDEX="insert_counter" 
> STEP="1">
> 
> <!--- skip gaps in case value numbering --->
> <CFSWITCH EXPRESSION="insert_counter">
> 
>  <CFCASE VALUE= "23">
>   <CFSET insert_counter = "26">
>  </CFCASE>
> 
>  <CFCASE VALUE="194">
>   <CFSET insert_counter = "211">
>  </CFCASE>
> 
> </CFSWITCH>
> 
> <CFSWITCH EXPRESSION="#insert_counter#">
>  <CFCASE VALUE = "1"> <CFSET exp = "0"> <CFSET
> order_ID = "0"> <CFSET
> cust_ID = "0"> <CFSET category = "wedding"> <CFSET
> img_sm =
> "images/gallery/Img0001s.jpg"> <CFSET img_lg =
> "images/gallery/Img0001.jpg"> <CFSET addedToTable =
> "07/01/1999">
> </CFCASE>
>  <CFCASE VALUE = "2"> <CFSET exp = "0"> <CFSET
> order_ID = "0"> <CFSET
> cust_ID = "0"> <CFSET category = "wedding"> <CFSET
> img_sm =
> "images/gallery/altar_s.jpg"> <CFSET img_lg =
> "images/gallery/altar.jpg"> <CFSET addedToTable =
> "01/09/2000">
> </CFCASE>
> 
> and so on
> 
> </CFSWITCH>
> 
> </CFLOOP>
> 
> So far, the CFSWITCH's Expression never seems to be
> true. Anyone have
> any ideas on how to make this work?
> 
> Thanks!
> 
> * john *
> 
> 
> 
> 
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to