Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
jrefactors@hotmail.com #1
How to reverse a list?
How to reverse a list?
<cfset myList = "1,2,3">
<cfoutput>
<cfloop list="#myList#" index="theItem">
#theItem#<br>
</cfloop>
</cfoutput>
produces
1
2
3
If I want to reverse the list, can we do that?
i.e. It prints
3
2
1
jrefactors@hotmail.com Guest
-
Reverse like query?
I have some problems figuring this one out. How do I put together a query that selects those rows in which a field contains a substring of another... -
Where to get help to reverse a .W3d file?
Last week I posted a question asking how to fastfoward and reverse a .W3d animation imported from 3ds max 6 into Director 8.5. No one answered so I... -
A reverse Modelunderloc?
Is there a way of returning a 2D reference (ie on the 3d sprite) from a model in a 3d environment? Basically I want to create an 2D overlay on the... -
Reverse Order?
I read a text file into HTML for viewing through a webpage, fairly straight forward. Open (INFILE, "<filename.txt") || die "Error opening... -
Reverse the Axis of a list box
Doubt its possible directly. The FlexGrid control might work. But you will have to fill the rows and columns from code, not just assign a record... -
George Farnsworth #2
Re: How to reverse a list?
<cfloop index="i" from="#listLen(Mylist)#" to="1" step="-1">
<cfoutput>#ListGetAt(Mylist,i)#</cfoutput>
</cfloop>
<jrefactors@hotmail.com> wrote in message
news:1129965937.431417.147410@f14g2000cwb.googlegr oups.com...> How to reverse a list?
>
> <cfset myList = "1,2,3">
> <cfoutput>
> <cfloop list="#myList#" index="theItem">
> #theItem#<br>
> </cfloop>
> </cfoutput>
>
> produces
> 1
> 2
> 3
>
> If I want to reverse the list, can we do that?
>
> i.e. It prints
>
> 3
> 2
> 1
>
George Farnsworth Guest
-
News #3
Re: How to reverse a list?
#ListSort(list, sort_type, sort_order)#
<jrefactors@hotmail.com> wrote in message
news:1129965937.431417.147410@f14g2000cwb.googlegr oups.com...> How to reverse a list?
>
> <cfset myList = "1,2,3">
> <cfoutput>
> <cfloop list="#myList#" index="theItem">
> #theItem#<br>
> </cfloop>
> </cfoutput>
>
> produces
> 1
> 2
> 3
>
> If I want to reverse the list, can we do that?
>
> i.e. It prints
>
> 3
> 2
> 1
>
News Guest



Reply With Quote

