wp.setText
| Syntax |
wp.setText (string)
|
| Params |
string is the string to be used to replace the contents of the target word processing window or text object.
|
| Action |
Completely replaces the contents of a word processing document or text object in the target window with string.
|
| Returns |
True
|
| Examples |
edit (@examples.testText); editMenu.selectAll (); // prepare to save the present window contents editMenu.copy (); // Now the present contents are saved. wp.setText ("This is the new text for the window.") » true
Notice that the former contents of the window are completely replaced with the string, "This is the new text for the window." editMenu.paste ()
The window's contents are restored. |