Capitalize(
     string:string,
     int:type
)
string

Arguments

string

Input string to capitalize.

type

Optional capitalization type. Valid types are:

0capitalize first letter
1capitalize all words
2capitalize all words including file extensions

Return value

Capitalized string.

Description

Returns the capitalized version of string. By default, just the first letter is capitalized. Use the optional type parameter to select a different capitalization method.

Example:

Output( Capitalize("hello world", 1) );
--> Hello World

See also:
LCase
UCase