upperword(
upperword(
TEXT
)

The upperword( function converts text to Initial Caps.

Parameters

This function has one parameter:

text – The text to be converted.

Description

The upperword( function converts text to initial caps. In other words, the first letter of each word is changed to upper case, and all other letters are changed to lower case.

    upperword("john smith") ☞ John Smith
    upperword("Mary Bishop") ☞ Mary Bishop
    upperword("net 30") ☞ Net 30
    upperword("NEW York") ☞ New York
    upperword(30) ☞ 30

As the last line shows, if you pass a number to this function it will be converted to text (like the str( function).

See Also

- lower( -- converts text to lower case.
- mixedupperword( -- converts lower case words to Initial Caps, but leaves mixed case words alone.
- straightquotes( -- converts any "smart quotes" in the text into straight quotes.
- stripaccents( -- removes accents from any characters in the text.
- switchmatch( -- chooses from a list of values based on a wildcard match.
- switchmatchexact( -- chooses from a list of values based on a wildcard match.
- titlecase( -- capitalizes first character of each word, but not articles, prepositions, and conjunctions under 5 characters (unless they are the first or last word in the text).
- upper( -- converts text to UPPER CASE (all caps).

History

Version | Status | Notes
10.0 | No Change | Carried over from Panorama 6.0