Depends to just display,  loop over lists

<CFLOOP index = "x" from="1" to="#ListLen(my_list, ',')#" step="1">
        The #listgetat(colors, x, ",")# #listgetat(my_list, x, ",")#
</CFLOOP>

or use listToArray to change to arrays if you need to mix and match later,
then you can use
the index in the array


The Acolors[x] Amy_list[x]  


-----Original Message-----
From: David Misha [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 07, 2001 2:43 PM
To: CF-Talk
Subject: Array i think


I have: 

<cfset my_list = "Dogs,Cats,Mouse,Elephant"> 

<cfset colors = "Brown,Black,Grey,Pink"> 

 

I want to get:

The Brown Dog 

the Black Cat 

The Grey Mouse 

The Pink Elephant
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to