Removing CRLF from text
Jim Ault
JimAultWins at yahoo.com
Thu Aug 7 00:14:07 EDT 2008
try using this line first
replace null with empty in tData
--some functions (eg filter) don't work if any nulls are in the text block
Of course you could find out where they are, if any, by
replace null with cr in tData
Jim Ault
Las Vegas
On 8/6/08 8:34 PM, "mfstuart" <mfstuart at cox.net> wrote:
>
> Hi Sarah,
> Thanx for your reply.
> I have tried your suggestion and it still doesn't make the separated lines
> into one entry per line.
> I also tried Jacqueline's suggestion and nada, zilch, nichte.
> I've looked at the ini (text) file with a Hex Editor and the values are:
> +=2b, CR=0d, LF=0a.
> Not sure how to replace using the hex value as the value to replace.
>
> I've even tried using:
> replace "+" & numtoChar(10) & numtoChar(13) with "" in tData
> This all will not put all separated lines into one line.
>
> So I'll keep trying different combinations, unless someone has this licked.
>
> Regards,
> Mark Stuart
>
>
>
> Sarah Reichelt-2 wrote:
>>
>>> I have a situation where a software application's ini file has the plus
>>> (+)
>>> char and CRLF at the end of a line, when the line passes 80 characters.
>>> The
>>> balance of the ini entry is placed on the next line. Each ini entry could
>>> be
>>> very long and possibly go to 3 lines.
>>> Why they did this I don't know, really.
>>>
>>> But what I need to do is remove the + and CRLF so that each ini entry is
>>> complete in itself, on one line.
>>>
>>> ini file currently contains:
>>> dfgsdfg sdfgsd fgsdfgsdf gsdfg +
>>> sdfgadfs dgdghs dfdfgg fghf+
>>> dfgh dfgh
>>>
>>> Result I'd like after running the script:
>>> dfgsdfg sdfgsd fgsdfgsdf gsdfg sdfgadfs dgdghs dfdfgg fghf dfgh dfgh
>>>
>>
>> what about:
>>
>> replace "+" & CRLF with empty in tData
>>
>> Cheers,
>> Sarah
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
>>
More information about the use-livecode
mailing list