setText method



Populates the current document with the specified ASCII text.

Syntax

success  = document.WPObject.setText(myText)

Applies to

WordProcessor class.

Parameters

myText
String. The ASCII text string to be inserted into the document. The string can contain the following newline characters: \n, \r, or \n\r, which are treated as new paragraphs.

Return value

boolean. Returns true if the string is inserted successfully, and false otherwise.

Usage

All existing text in the document is replaced by setText.

See also
setHTMLText method