Class
EndOfLine
Description
Returns an end-of-line terminator.
Usage
result = EndOfLine
Part |
Type |
Description |
---|---|---|
result |
The end of line String for the platform being compiled. |
or
result = EndOfLine.EndOfLineType*
Part |
Type |
Description |
---|---|---|
result |
The end of line String specified by EndOfLineType. |
|
EndOfLineType |
The end of line String being requested. |
Properties
Name |
Type |
Read-Only |
Shared |
---|---|---|---|
✓ |
✓ |
||
✓ |
✓ |
||
✓ |
✓ |
||
✓ |
✓ |
||
✓ |
✓ |
||
✓ |
✓ |
||
✓ |
✓ |
||
✓ |
✓ |
||
✓ |
✓ |
Property descriptions
EndOfLine.Android
Android As String
EndOfLine.CR
CR As String
EndOfLine.CRLF
CRLF As String
EndOfLine.iOS
iOS As String
EndOfLine.LF
LF As String
EndOfLine.macOS
macOS As String
EndOfLine.Native
Native As String
The line ending supplied by the OS upon which the app is running.
This property is read-only.
This property is shared.
EndOfLine.UNIX
UNIX As String
EndOfLine.Windows
Windows As String
Notes
As indicated by the syntax, EndOfLine can be used in either of two ways. You can call one of its properties to get the line ending for that platform or you can call it without accessing any of its properties. In that case, it returns the EndOfLine character or character string for the platform being compiled.
Use the String.ReplaceLineEndings function to convert the line endings of text from one line ending to another.
Sample code
The following example specifies Unix line endings.
Var cr As String
cr = EndOfLine.Unix
TextField1.Text = "Hello world" + cr + "Such as it is."
Compatibility
Project Types |
All |
Operating Systems |
All |
See also
Object parent class; String.ReplaceLineEndings function.