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: Karen <keatk at verizon dot net>
Date: Fri, 30 May 2008 23:00:26 -0400
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 10:52 PM, David Glass wrote:

> Editfield text is run through a method that replaces all the
> EndOfLines with a unique delimiter (*EndOfLine*):
>
> strSafeString = ReplaceAll(strFieldValue, EndOfLine, "*EndOfLine*")


IIRC on Windows the edifield uses a different EOL than teh rest of  
the system..

Use:

strSafeString = ReplaceLineEndings(strFieldValue, "*EndOfLine*")

Or don't bother and just store the data with the platform line  
endings and use ReplaceLineEndings when you pull the data out of the  
DB. That way what's stored does not matter and would be store faster  
(no replace and less characters) and retrieved at about he same speed.

- Karen

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