User Guide

221
InsertText
procedure InsertText(InsertStr: OleVariant; wbOverwriteSelection: WordBool)
Inserts the passed string at the current cursor position, overwriting the selection if
wbOverwriteSelection is True.
LastSavedDate
function LastSavedDate()
Returns the datetime value for the last save of the active document file.
Print
procedure Print(wbNoPrompt: WordBool)
Prints the active document. Prompts the user for print settings unless
wbNoPrompt is
True.
Redo
procedure Redo()
Performs a single redo operation.
Reload
procedure Reload(wbPromptToSave: WordBool)
Reloads the active document, prompting to save changes if
wbPromptToSave is True.
ReplaceAll
function ReplaceAll(strSearch, strReplace: OleVariant; bMatchCase: WordBool): Integer
Replaces all occurrences of
strSearch with strReplace, matching case if bMatchCase
is True. Returns the number of replacements made.
Save
function Save: WordBool()
Saves changes to the active document, returning True if successful.
SaveAs
function SaveAs(wsFileName: widestring): WordBool
Saves changes to the active document to the file specified in the
wsFileName
parameter, returning True if successful. If
wsFileName is empty, the standard "Save As"
dialog box will be displayed to the user. Note that existing files will be overwritten by
this function, so use with caution.
SelectAll
procedure SelectAll()
Selects all the text in the active document,
SelectCurrentLine
procedure SelectCurrentLine()
Highlights the current line.