-- Lingo syntax textMemberExpression.line[whichLine] line whichLine of fieldOrStringVariable textMemberExpression.line[firstLine..lastLine] line firstLine to lastLine of fieldOrStringVariable
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.
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]
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]