Replaces the just-dictated phrase with specified text.
Syntax
Replace(newText)
Parameters
- newText
- Text to replace the just-dictated phrase.
Remarks
This function replaces the just-dictated phrase by first sending enough "backspace" keystrokes to remove it,
and then sending the keystrokes specified by newText.
It will not work correctly if the insertion point has moved from the end of the just-dictated phrase.
If newText is empty, this function removes the just-dictated phrase from the dictation stack, leaving the previously-dictated phrase (if any) on top.
If the Vocola dictation stack is empty, this function does nothing.
Examples
CopyCapitalize the just-dictated phrase
Cap That = If( Dictation.CanGet(), Dictation.Replace(String.Capitalize(Dictation.Get())), HearCommand("Capitalize That") );
Three Vocola library functions are used to capitalize the just-dictated Vocola phrase: Get retrieves the just-dictated phrase, Capitalize capitalizes it, and Replace replaces it.
This is one of Vocola's built-in commands.
CopyRemove the just-dictated phrase
Scratch That = Dictation.Replace("");
Assembly: VocolaFunctionLibrary (Module: VocolaFunctionLibrary) Version: 3.1.1.0 (3.1.1.0)