realbasic-nug
[Top] [All Lists]

EndOfLine is wrong on my Windows Laptop

To: realbasic-nug at lists dot realsoftware dot com
Subject: EndOfLine is wrong on my Windows Laptop
From: Emile Schwarz <emile dot a dot schwarz at wanadoo dot fr>
Date: Fri, 29 Oct 2004 21:57:12 +0200
Delivered-to: realbasic-nug at lists dot realsoftware dot com
Hi,

the same method (source code and way of doing the test) do not achieved the same results...

A simple use of EndOfLine worked fine on Macintosh and failed on Windows.

But, once I replaced EndOfLine by Chr(13) on the Windows platform, the results is the one I expected :(

REALbasic 5.5.3
Mac OS X 10.3.5
Windows XP SP2

As an example, here a code line and a methodology:

MsgBox "Number of lines: " + Str(CountFields(EditField1.Text,EndOfLine))

In a brand new project, add an EditField, put the above code in the Window1.MouseDown event, Copy / Paste a bunch of REALbasic source code and run the project.

Using EndOfLine on Windows returns me 1 line; using Chr(13) instead of EndOfLine gaves me the number of lines (in fact, I didn't count them, really, but 1 was false and then I get some higher value later - around 43).


Did you - Windows users and xplatform users - get the same kind of troubles ?

TIA,


Emile


PS: For those with large memory and young, they will recall that I already wrote something about having troubles with EndOfLine, they now know what was/is the trouble. [someone asked me in a previous mail why I used Chr(13) and not EndOfLine; my answer was that I had a problem previously...]

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

Search the archives of this list here:
<http://www.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>
  • EndOfLine is wrong on my Windows Laptop, Emile Schwarz <=