CAPSTR - Capitalises the first letter of each word in a string (Reports & Settings Report Generator function)

From Catalyst
Jump to: navigation, search

Syntax

$CAPSTR{string}

Description

Will convert the first letter of each word in string to upper case.

$CAPSTR{"MR BOB MONEYBAGS"}
The above in a text formula would result in 'Mr Bob Moneybags'.
$CAPSTR{ $FORENAME{"MR BOB MONEYBAGS"} }
The above in a text formula would result in 'Bob'.
$CAPSTR{A03}
Would return a capitalised copy of a company name.


Parameters

string
A text parameter that can not be omitted.
Input Text.

Returns

A text value. Will return the text string capitalised.

See also

$UPSTR, $LOSTR.