ToUpper Function

Syntax

String ToUpper(String string, Number startIndex = 0, Number numCharacters = -1, Boolean reverse = False)

Return Value

String

The modified string.

Purpose

This function converts the alphabetic characters in a string to uppercase characters.

Parameters

string as String

String to convert.

startIndex as Number

(Optional) the zero-based character index at which to begin converting. The default is 0.

numCharacters as Number

(Optional) the number of characters to convert. A value of -1 signals the function to convert all characters. The default is -1.

reverse as Boolean

(Optional) Pass True to convert the string in reverse. In this case, the start index passed to parameter 2 specifies the zero-based index from the end of the string as the character at which to begin converting in reverse. The default is False.