Ok... But why? Other than the pound signs it seems fine to me... Except that
form.ID will always be the last item in the list once you are done with the
loop.

<cfloop list="#form.whattoupdate#"  index="tempval">

        <cfset form.id = tempval/>
        <cfset form.newRank = form["rank_" & tempval]/>

</cfloop> 


Mark A. Kruger, CFG, MCSE
(402) 408-3733 ext 105
www.cfwebtools.com
www.coldfusionmuse.com
www.necfug.com

-----Original Message-----
From: Glyn Jackson [mailto:[email protected]] 
Sent: Thursday, December 10, 2009 8:43 AM
To: cf-talk
Subject: convert this cfscript back to tag?


Hi all, 

could someone convert this cfscript back to tag?


for(i=1;i lte listlen(#form.whatToUpdate#,",");i++){            
  tempVal = #listgetat(form.whatToUpdate,i,",")#;                
  form.ID = #tempVal#; //Option ID
  form.newRank = form["rank_" & #tempVal#];
  
}


thanks 



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329048
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to