|
well, you need to count the number of elements in the lists then output
them together looping from 1 to the total number of values in the lists i.e.: You need to make sure the listLens are equal though so maybe have a check in there as
well: <cfif
listLen(listofURLs, “,”)
EQ listLen(listofTitles, “,”)> <cfset last= listLen(listofURLs, ",")> <cfloop from="1" to="#last#"
index="i"> <cfoutput>#listGetAt(listofTitles, i)# #listGetAt(listofURLs, i)#</cfoutput> </cfloop> </cfif> HTH d -----Original Message----- Hi guys, Just to twist this slightly. I've actually got two fields for these
links. One contains the title to be used, the other contains the appropriate
link. How can I setup this loop so it breaks up two
strings, inserts one part into the HREF and the other as the link title? Cheers again, James From: John
Beynon [mailto:[EMAIL PROTECTED] Use cfloop and loop
over the list? <cfloop
list="#mylist#" index="i"> jb -----Original
Message----- Hi guys, Sorry, I've asked
this before but I can't seem to find the emails in my I have a string of
weblinks within an Access database which are separated by Here's an example: www.macromedia.com,www.google.com,www.ebay.com What I need to do
is break this string up and display the links as a So the example
above would become: www.macromedia.com Is there a way I
can do this? I'm currently run
CF5.0 Cheers again, -- To unsubscribe,
e-mail: [EMAIL PROTECTED] _____________________________________________________________________
|
Title: RE: [ cf-dev ] Breaking up a list
- [ cf-dev ] Breaking up a list James Buckingham
- Re: [ cf-dev ] Breaking up a list Tom Smith
- Re: [ cf-dev ] Breaking up a list Tom Smith
- RE: [ cf-dev ] Breaking up a list John Beynon
- RE: [ cf-dev ] Breaking up a list James Buckingham
- RE: [ cf-dev ] Breaking up a list James Buckingham
- Re: [ cf-dev ] Breaking up a list Tom Smith
- Re: [ cf-dev ] Breaking up a list Damian Watson
- Re: [ cf-dev ] Breaking up a list Tom Smith
- RE: [ cf-dev ] Breaking up a list Damian Watson
- RE: [ cf-dev ] Breaking up a list Snake Hollywood
- RE: [ cf-dev ] Breaking up a list Damian Watson
- Re: [ cf-dev ] Breaking up a list Tom Smith
- RE: [ cf-dev ] Breaking up a list James Buckingham
