Object

EndOfLine Class

Returns an end-of-line terminator.

Properties
Macintosh
Unix
Windows

# Notes

result=EndOfLine

Part | Type | Description
--- | --- | ---
result | String | The end of line String for the platform being compiled.

or

result=EndOfLine.EndOfLineType

Part | Type | Description
--- | --- | ---
result | String | The end of line String specified by EndOfLineType.
EndofLineType |  | The end of line String being requested. The choices are: Windows Macintosh Unix

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. For console applications on Mac OS X, the EndOfLine function returns EndOfLine.Unix.

Use the ReplaceLineEndings function to convert the line endings of text from one line ending to another.

Some applications on Mac OS X require a Unix line ending because Mac OS X is based on BSD Unix.

# Example

The following example specifies Unix line endings.

Dim cr as String
cr=EndOfLine.Unix
Editfield1.Text ="Hello world"+cr+"Such as it is."

# See Also

ReplaceLineEndings function.