op.getLineText

Syntax op.getLineText ()

Params None required

Action Obtains the text contained in the current heading.

Returns The text of the current heading as a string.

Examples In examples.Sample Outline 1, with the cursor positioned at the summit heading, execute:
op.getLineText ()


   » Sample Outline 1, Summit 1

Position the cursor in examples.Sample Outline 2 anywhere below the first summit and then execute:
op.go (flatup, infinity);

op.getLineText ()


   » examples.Sample Outline 2, Summit

The first line of the script placed the cursor on the top summit of the outline.

See Also op.setLineText

Discuss