realbasic-nug
[Top] [All Lists]

Re: EndOfLine Windows v. OS X

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: EndOfLine Windows v. OS X
From: David Glass <dglass at graymattercomputing dot com>
Date: Fri, 30 May 2008 22:40:47 -0700
Authentication-results: mx.google.com; spf=pass (google.com: domain of realbasic-nug-bounces at lists dot realsoftware dot com designates 66.116.103.65 as permitted sender) smtp dot mail=realbasic-nug-bounces at lists dot realsoftware dot com
Delivered-to: listarchive at realsoftware dot com
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <1CB68939-BC17-4639-B39E-4A6C252348B3 at graymattercomputing dot com> <B2E67792-1F1C-4856-AF1C-4CC863AFBECA at inspiringapps dot com>
Thanks Karen and Joe!

On May 30, 2008, at 8:38 PM, Joe Strout wrote:

> On May 30, 2008, at 8:52 PM, David Glass wrote:
>> strSafeString = ReplaceAll(strFieldValue, EndOfLine, "*EndOfLine*")
>> ...
>> On OS X this works properly, but in the Windows version the
>> EndOfLines are not replaced, and the text goes into the database with
>> the EndOfLines rather than the delimiters.
>
> That's because Windows uses different line delimiters in different
> circumstances.  That's exactly why RB added the ReplaceLineEndings
> method.  Use that instead of ReplaceAll, and your code will work fine.
>
> Best,
> - Joe
>
>

-- 
David Glass - Gray Matter Computing
graymattercomputing.com
559-303-4915


_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


<Prev in Thread] Current Thread [Next in Thread>