You want an array of structs.
<cfloop from="1" to="#arrayLen(FullReturn)# index="i">
<cfset tempStruct = structNew()>
<cfset tempStruct.id = listGetAt(FullReturn[i], 1, "|")>
<cfset tempStruct.something = listGetAt(FullReturn[i], 2, "|")>
<cfset tempStruct.somethingelse = listGetAt(FullReturn[i], 3,
"|")>
<cfset tempStruct.paymentMethod = listGetAt(FullReturn[i], 4,
"|")>
<cfset tempStruct.dontknow = listGetAt(FullReturn[i], 5, "|")>
<cfset FullReturn[i] = tempStruct>
</cfloop>
> -----Original Message-----
> From: Tony Weeg [mailto:[EMAIL PROTECTED]]
> Sent: Monday, 2 September 2002 12:37 p.m.
> To: CF-Talk
> Subject: list to array, now to another array
>
>
> 1 7|5372****|0|Credit Card|1250
> 2 8|5108743****|2831|Auto Loan|32967
> 3 9|74****|370|Installment|2839
> 4 10|56675****|238|Credit Card|1500
> 5 11|87115439****|1952|Auto Loan|9938
> 6 12|917****|184578|Mortgage|189255
> 7 13|601100248726****|0|Credit Card|1000
> 8 14|3772689****|9243|Installment|85000
>
> lets say that this is the results of a cfdump
> on a variable i have called FullReturn.
>
> and its basically a 1 dimension array with some values
> that are pipe "|" delimited.
>
> ok, now i want to take those values, and make them arrays
> themselves, with the | as the delimeter...does this make sense?
> or does a structure make more sense? either way i need to
> be able to get those into some sort of logical order where
> each value is a name/value pair from this array, to something
> else.
>
> if so, how would i accomplish this? im soo close to finishing
> this web service app, and this is one last bane ;)
>
> thanks!
>
> ...tony
>
> tony weeg
> [EMAIL PROTECTED]
> www.revolutionwebdesign.com
> rEvOlUtIoN wEb DeSiGn
> 410.334.6331
>
>
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.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