After that code has run, the rows you are after (names and email) are
in the wantedRows arrray. So to output them do a similar loop:

<cfset j =1>
<cfloop condition="j LTE ArrayLen(wantedRows)">
  <cfoutput>#wantedRows[j]#</cfoutput>
  <cfset j = j + 1>
</cfloop>

If you want to do the inserts, do them in place of the cfoutput, using
your list functions again to get the right bits:

ListGetAt(wantedRows[j],1) is the first name
ListGetAt(wantedRows[j],2) is the last name
ListGetAt(wantedRows[j],3) is the email address

On 2/10/06, dave <[EMAIL PROTECTED]> wrote:
> ok, thats over my head lol
> After the loop what do I need to call for output? Obviously If i used my same 
> variable I would get the origianl list back, pre-process.
>
> thanks James
>
> ~Dave the disruptor~
> I forgot what I was gunna put here, Will woulda stole it anyways!
>
> ----------------------------------------
> From: James Holmes <[EMAIL PROTECTED]>
> Sent: Friday, February 10, 2006 3:36 AM
> To: CF-Talk <[email protected]>
> Subject: Re: parsing a list
>
> After you upload the file, use this:
>
> ListGetAt(allRowsArray[i],3) CONTAINS "@">
>
> On 2/10/06, dave  wrote:
> > When doing either I get a error saying I can't convert a simple value to a 
> > complex value, so I will start from scratch, if you wanna help cool if not 
> > thats cool too and thanks either way.
> >
> > a short copy of the files I will have to work with www.jamwerx.com/text.TAB
> >
> > first I upload it:
> >
> > Filefield="FileContents"
> > DESTINATION="#request.perge#temp.txt"
> > Nameconflict="overwrite"
> > accept="text/plain, application/x-tab-delimited, application/tab, 
> > application/octet-stream">
> >
> > then I read it:
> >
> >
> > then I replace the tabs:
> >
> >
> >
> > to see that list do a simple loop:
> >
> > #i#
> >
> >
> > Its at this point that I'm getting stuck, if i then try to go listtoarray 
> > it errors as well.
>
> --
> CFAJAX docs and other useful articles:
> http://jr-holmes.coldfusionjournal.com/
>
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:231884
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to