Data Types

line

Supported By

Descriptors

Description

The line data type is a chunk type of string that represents a line or a range of lines. This includes empty lines at the beginning or in the middle of the string but not the last trailing empty line of the string, if there is one.

Note

Accessing a line chunk that is out of range returns empty. Modifying a line chunk that is out of range inserts as many line breaks as necessary to insert text on the appropriate line of the parent string.

Compatibility

The line chunk type in HyperTalk always and only uses return as the line ending. The line chunk type in XION uses return&newline, newline, return, linesep, and parasep as possible line endings. When inserting additional line breaks, line uses the current setting of the lineEnding property.