- Function StringCapitalize(text)
StringCapitalize
The function StringCapitalize
converts the first character of a
string to upper case, and all other characters to lower case.
StringCapitalize(
text ! (input) a scalar string expression
)
Arguments
- text
The string that you want to capitalize.
Return Value
The function returns the capitalized string.
Example
The code:
sp_str := "hello HELLO";
sp_res := StringCapitalize( sp_str );
display sp_res ; ! sp_res := "Hello hello" ;
See also
The functions StringToLower
, StringToUpper
.