cfloop list=#form.whatToUpdate# delimiter=, index=Variables.i
cfset Variables.tempVal = Variables.i /
cfset form.id = Variables.i /
cfset form.newRank = form[rank_ Variables.tempVal] /
/cfloop
I think that's right...
-Original Message-
From: Glyn Jackson
cfloop list=#form.whatToUpdate# index=tempVal
cfset Form.ID = tempVal!--- Option ID ---
cfset Form.newRank = Form[rank_#tempVal#]
/cfloop
~|
Want to reach the ColdFusion community with something they want? Let
cfloop index=i from=1 to=#listlen(form.whattoUpdate)#
cfset tempVal = listgetat(form.whatToUpdate,i,,) /
cfset form.ID = tempVal /
cfset form.newRank = form[rank_ tempVal] /
/cfloop
--
s. isaac dealey :: AutLabs
Creating meaningful employment for people with Autism
Glyn,
cfloop from=1 to=#listLen(form.whatToUpdate)# index=i
cfset tempVal = listGetAt(form.whatToUpdate,i)
cfset form.ID = tempval !--- Option ID ---
cfset form.newRank = form[rank_ tempVal]
/cfloop
Hope this helps!
Dave Phillips
-Original Message-
From: Glyn Jackson
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 list=#form.whatToUpdate# index=i
cfset form.ID = i /
cfset form.newRank = form[rank_ i ] /
/cfloop
~|
Want to reach the ColdFusion community with something they want? Let them know
on the House of Fusion
6 matches
Mail list logo