Vocola.net
Vocola 3.1 Function Library
ToggleInitialSpace(text)
Namespaces LibraryString ► ToggleInitialSpace
Adds or removes a space at the beginning of the specified text.
Syntax
ToggleInitialSpace(text)
Parameters
text
Text to modify.
Return Value
text, with an initial space added or removed.
Remarks
If text begins with a space character this function removes it. If text does not begin with a space character this function adds one.
Examples
CopyToggle initial space in dictated text
Fix Space = Dictation.Replace(String.ToggleInitialSpace(Dictation.Get()));
Because Vocola has no knowledge of a document's text, a dictated phrase may have an extra initial space or lack a desired initial space. This command toggles the initial space, using three Vocola library functions: Dictation.Get retrieves the just-dictated phrase, ToggleInitialCase adds or removes an initial space, and Dictation.Replace replaces the phrase.

Assembly: VocolaFunctionLibrary (Module: VocolaFunctionLibrary) Version: 3.1.1.0 (3.1.1.0)