op.setLineText

Syntax op.setLineText (string)

Params string is the new contents for the heading on which the bar cursor is presently positioned.

Action Replaces the present contents of the heading on which the bar cursor is presently positioned with string.

Returns True

Examples In examples.Sample Outline 1, position the bar cursor on the first summit and then execute:
op.insert ("", down);

op.setLineText (clock.now ())


   » true

You should see the current date and time appear on the new headline you added using op.insert below the first summit and indented one level from the summit.

In examples.Sample Outline 2, position the bar cursor anywhere in the outline except on the top summit heading and then execute:
op.firstSummit ();

op.setLineText ("This is the first summit of Outline 1!")


   » true

See Also op.getLineText

op.insert

op.insertAtEndOfList

Discuss