Replaces the just-dictated phrase with specified text.

Replace(newText)

- newText
- Text to replace the just-dictated phrase.

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.


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.

Scratch That = Dictation.Replace("");
Assembly: VocolaFunctionLibrary (Module: VocolaFunctionLibrary) Version: 3.1.1.0 (3.1.1.0)