Vocola.net
Vocola 3.1 Function Library
JoinWords(text, joiner)
Namespaces LibraryString ► JoinWords
Replaces whitespace characters in the input text with specified character(s).
Syntax
JoinWords(text, joiner)
Parameters
text
Text to be joined.
joiner
Character(s) to insert between words of Text.
Return Value
A version of text with each space replaced by joiner.
Remarks
Leading and trailing whitespace is not affected.
Examples
CopyHyphenate dictated text
Compound That = Dictation.Replace(String.JoinWords(Dictation.Get(), "-"));
This command uses three Vocola library functions to hyphenate the just-dictated Vocola phrase: Dictation.Get retrieves the just-dictated phrase, JoinWords replaces spaces with hyphens, and Dictation.Replace replaces the just-dictated phrase,
Examples
CopyRemove spaces in dictated text
Compound That = Dictation.Replace(String.JoinWords(Dictation.Get(), ""));
Similarly, this command removes spaces from the just-dictated Vocola phrase; JoinWords replaces the spaces with nothing.

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