brook, let me try that...im also
playing with putting it into a structure
called accounts, and from there access
the data from the structure....

although structures are a bit tricky, this is my
first time down structure row....so we will
see....

thanks.
tw


-----Original Message-----
From: Brook Davies [mailto:[EMAIL PROTECTED]] 
Sent: Sunday, September 01, 2002 9:38 PM
To: CF-Talk
Subject: Re: list to array, now to another array


I don't know if this is what you mean, but you could convert each item
in 
your original array to an array itself, so you would have an array of
arrays.

If your FullReturn Array looks like the one below, you could try
something 
like:

<cfloop from="1"  to="#arraylen(FullReturn)# index="ArrayPos">
         <cfset
FullReturn[ArrayPos]=listtoarray(FullReturn[ArrayPos],"|")>
</cfloop>

<cfdump var=FullReturn>

Which should give you your original array where each item at the first 
dimension is an array itself. You could then access, lets say, the
"Credit 
Card" entry in the first potion like #FullReturn[1][4]#. Does this help
at all?

Brook


At 08:36 PM 01/09/02 -0400, you wrote:
>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
>
>

______________________________________________________________________
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to