Hi Seamus,

>I'm reading a txt file which has 3 fields to a line
>eg
>
>14||'Maggin, Elliot S.'
>15||'Maine, Charles Eric'
>16|1|'McCaffrey, Anne'
>
>but often the second field is empty
>
>Lists don't believe an empty field exists so I keep getting errors when I 
>try to loop over the list to import to a database
>
>How can I make the list a true believer? (in accepting empty fields?)

Use the replace() function to change the adjacent delimiters pairs to pairs with 
something you know is a "null" for the relevant field. 

Say change "||" to "|.|".


--

Yours,

Kym

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
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

Reply via email to