Vocola.net
Vocola 3.1 Function Library
ToggleInitialCase(text)
Namespaces LibraryString ► ToggleInitialCase
Toggles the case of the initial letter of the specified text.
Syntax
ToggleInitialCase(text)
Parameters
text
Text to modify.
Return Value
text, with the case of the initial letter toggled.
Remarks
If text begins with a lower-case letter this function converts it to upper case. If text begins with an upper-case letter this function converts it to lower case.
Examples
CopyToggle initial case of dictated text
Fix Case = Dictation.Replace(String.ToggleInitialCase(Dictation.Get()));
Because Vocola has no knowledge of a document's text, the initial case of a dictated phrase is sometimes incorrect. This command toggles the case, using three Vocola library functions: Dictation.Get retrieves the just-dictated phrase, ToggleInitialCase converts the case of the initial letter, and Dictation.Replace replaces the phrase.

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