I have two lists and I want to combine them into a single two dimensional array, how do I
do it??
Here are my two lists..
cfset myList1 = apple,banana,orange
cfset myList2 = bird,fish,mammal
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
Hi David,
cfset myList1 = apple,banana,orange
cfset myList2 = bird,fish,mammal
cfset CombiArr = ArrayNew(2)
cfloop from=1 to=#ListLen(mylist1)# index=i
cfset CombiArr[i][1]= ListGetAt(myList1,i,,)
cfset CombiArr[i][2]= ListGetAt(myList2,i,,)
/cfloop
cfdump var=#CombiArr#
--
Birgit
2 matches
Mail list logo