that assumes he's on CF8, no?

(which he may be... i'm not sure) :)

On Jan 9, 2008 2:00 PM, Todd <[EMAIL PROTECTED]> wrote:
> Use ListToArray(*list* [, *delimiters*, *includeEmptyFields*]) instead.
>
>
>
> On Jan 9, 2008 4:45 PM, Les Mizzell <[EMAIL PROTECTED]> wrote:
>
> > I've got an http response that's being return like:
> >
> > 2|1|2|Approved||P|1688659283|12912008010910019012|..........
> >
> > I need to pull a couple of things out of that to display on a page, so...
> >
> > <cfset request.responseCODE = #trim(listGetAt(AuthList, 1, "|"))#>
> > <cfset request.response = #trim(listGetAt(AuthList, 4, "|"))#>
> > <cfset request.transactionID = #trim(listGetAt(AuthList, 7, "|"))#>
> > <cfset request.invoiceNUM = #trim(listGetAt(AuthList, 8, "|"))#>
> > <cfset request.DESC = #trim(listGetAt(AuthList, 9, "|"))#>
> >
> > <p>Response: #request.response#<br />
> > Transaction Id: #request.transactionID#<br />
> > Invoice Number: #request.invoiceNUM#<br />
> > Description: #request.DESC#</p>
> >
> > Here's the problem ...
> >
> > It's skipping the 6th position because it's empty ( Approved||P| ), so
> > the line:
> > <cfset request.transactionID = #trim(listGetAt(AuthList, 7, "|"))#>
> >
> > ....is pulling the data from position 8 and then everything past that is
> > off by one.
> >
> > I need it to count that as a list position whether it's empty or not.
> > Any position *could* be empty, or not. Position "7" should always be
> > "7", whether 2 or three positions in front of it are empty or not.
> >
> > Suggestions?
> >
> >
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:296303
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to