Lingo Dictionary > L-N > line...of

 

line...of

Syntax

textMemberExpression.line[whichLine]
line whichLine of fieldOrStringVariable
textMemberExpression.line[firstLine..lastLine]
line firstLine to lastLine of fieldOrStringVariable 

Description

Keyword; specifies a line or a range of lines in a chunk expression. A line chunk is any sequence of characters delimited by carriage returns, not by line breaks caused by text wrapping.

The expressions whichLine, firstLine, and lastLine must be integers that specify a line in the chunk.

Chunk expressions refer to any character, word, item, or line in any source of characters. Sources of characters include field cast members and variables that hold strings.

Example

This statement assigns the first four lines of the variable Action to the field cast member To Do:

member("To Do").text = Action.line[1..4]

Example

This statement inserts the word and after the second word of the third line of the string assigned to the variable Notes:

put "and" after Notes.line[3].word[2]

See also

char...of, item...of, word...of, and, number (words)