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: Joe Strout <joe at inspiringapps dot com>
Date: Fri, 30 May 2008 21:38:18 -0600
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>
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

--
Joe Strout
Inspiring Applications, Inc.
http://www.InspiringApps.com



_______________________________________________
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>