Ouch! That's gonna leave a mark!

Andre Garzia soapdog at mac.com
Mon Jun 14 18:40:10 EDT 2004


Bob,

you have different line endings depending on what system generated it.
* Macs uses cr as line ending
* Unix uses newline (linefeed I think)
* Win uses both, one following the other.

yes, something like this, or I am mixing who uses what.. but that don't 
matter. Check for line endings using numToChar func, check for cr, for 
lf, and for cr & lf.
That should do the trick...

Cheers
Andre



On Jun 14, 2004, at 6:09 PM, Bob Nelson wrote:

> Well, I've made substantial progress on my oil-for-food program - 
> converting
> web pages to usable tab-delimited fields of information for importing 
> into a
> database.  However, I've encountered a (small) problem I haven't been 
> able
> to overcome (yet).
>
> I end up with lines that have some sort of return character at the end 
> of
> each line.  I tried a simple scripting solution like:
>
> if the last char of line I of tData is cr then
> delete last char of line I of tData
> end if
>
> And even sampled for an lf or return, but I get nowhere...
>
> What IS that character at the end of each line and how can I kill it?  
> At
> the end of each line the routine should be a tab, and a return.  If I 
> kill
> the returns, then I can solve me problem (okay, well I can solve THIS
> problem).
>
> Any suggestions of where I'm going wrong?
>
> Thanks,
>
> Bob
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
-- 
Andre Alves Garzia ð 2004
Soap Dog Studios - BRAZIL
http://studio.soapdog.org



More information about the use-livecode mailing list