Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
willisman #1
cfloop over a list - how to increment
:(
I'm trying to look over a bunch of form fields, all of which have the same
name. I can't get the loop to increment to the next iteration. Here is my code.
How to......? Thanks
<cfloop list="#FORM.day_shift#" index="pos1">
<cfset pos1="#left(FORM.day_shift,1)#">
<cfset pos2="#right(FORM.day_shift,1)#">
<cfoutput>#pos1#<br>#pos2#</cfoutput><br>
</cfloop>
willisman Guest
-
Access update, CFLOOP, number increment
I have a table with four columns. field0 | field1 | field3 | field10 (primary key) L ABC 101 ... -
Cfloop and list
thru a form i recieve several list form.list1 ( 123,$15,000,$15,000,$15,000,x) form.list2 (456,$4,000,$15,000,$15,000,s form.list3... -
Increment 'A'
Does anybody knows how to increment the 'A' so it will be 'B' and so on to 'Z'???? Thanx -
Time Increment
What is the smallest time increment that flash recognizes? I need something that is sensitive to the microsecond (.0000001 sec) Thanks -
What else will cause the SCN to increment?
Beside the "commit" statement, what else will cause the SCN to increment? Thanks -
mxstu #2
Re: cfloop over a list - how to increment
If you're trying to get the first and last character, of each element in the
list, maybe something like the attached. Wouldn't it be easier to just give
each form field a unique name, instead of looping through a list?
<cfloop list="#FORM.day_shift#" index="item">
<cfset pos1="#left(item,1)#">
<cfset pos2="#right(item,1)#">
<cfoutput>#pos1#<br>#pos2#</cfoutput><br>
</cfloop>
mxstu Guest
-
willisman #3
Re: cfloop over a list - how to increment
mxstu:
Your code works wonderfully. I opted to loop through the list because there are 21 separate for fields and I thought this would reduce the processing time.
Thanks for your help.
willisman Guest



Reply With Quote

