Remove CRLF
Jon
jbondy at sover.net
Sun Jun 19 15:53:08 EDT 2005
Michael:
Any chance this is a cross-platform problem? Could the file you are
processing have come from another platform? The end-of-line character
sequences are different between some platforms: some have two chars
(<CR> <LF>) while others have just one (<LF> I think). If you are
processing a <CR><LF> file on a <LF> system, maybe the code would just
remove the <LF> (correct for your system), leaving the offending <CR>
Just a theory...
:)
Jon
Michael Young wrote:
> Mark,
>
> Correct. It does not work. I still get the same trailing garbage that
> is apparently part of the CRLF that I added myself. The garbage is
> %0d, which I think is 13 when converted from hexadecimal to decimal,
> meaning that CR is sticking around for some reason.
>
> Michael
>
>>
>> Not sure if I fully understand what you're trying to do, but does
>> 'replace CRLF with empty in <chunk>' really not work?
>>
>> Mark
>>
>> On 19 Jun 2005, at 16:35, Michael Young wrote:
>>
>>> Thanks for the suggestions for all who responded, but I have not had
>>> success yet.
>>>
>>> I noticed an interesting subtlety that is of course NOT full explained
>>> in the documentation.
>>>
>>> 1. Reference Documentation for Object using Filter with: does not show
>>> item hilitedText. It does show selectedText function entry with
>>> apparently second line alternate name hilitedText.
>>>
>>> 2. Reference Documentation for Dictionary using Filter with with: does
>>> show both hilitedText and selectedText entries. The problem is the
>>> hilitedText entry is the exact same as the selectedText entry.
>>>
>>> 3. hilitedText is not in the selectedText function See also: section
>>> presumably because they are considered one and the same.
>>>
>>> 4. line x suggestion also has the CRLF still present. It made no
>>> difference whether list behavior was true or false.
>>>
>>> I still haven't figured out how to get rid of the CRLF that I added.
>>> Very frustrating.
>>>
>>> Michael
>>>
>>> On Jun 19, 2005, at 2:32 AM, use-revolution-request at lists.runrev.com
>>> wrote:
>>>
>>>>
>>>> Michael
>>>>
>>>> There's different ways to get a line...
>>>>
>>>> get line x of field f will give you the line selected without the
>>>> crlf.
>>>> or
>>>> get the selectedtext of fld f -- if the list is not listbehavior
>>>> or
>>>> get the hilitedtext of fld f -- if the list is listbehavior
>>>>
>>>> Normally, you just need to add cr, not crlf - as far as i know, rev
>>>> takes
>>>> care of the right line delimiter in displays.
>>>>
>>>> cheers
>>>> Xavier
>>>>
>>>>>
>>>>> Hello,
>>>>>
>>>>> I have added CRLF to end of lines in a Scrolling Field for
>>>>> cosmetic effect. Now I want to strip off the CRLF for a user
>>>>> selected line (although the last line in the Scrolling Field
>>>>> will not have CRLF).
>>>>> What is the simplest way to strip off the CRLF, if present? I
>>>>> have not been able to stumble on the answer or find it in
>>>>> documentation or list archives. Oh well. I am sure the
>>>>> solution is simple.
>>>>>
>>>>> Thanks,
>>>>>
>>>>> Michael
>>>>> OS X 10.3.9
>>>>> RR 2.6
>>>>
>
> _______________________________________________
> 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