uppercase

This function converts a number (1 through 26) to the corresponding uppercase character from the alphabet.

uppercase ( number )

The result of this function is of type TEXT: the uppercase character.

The function has one parameter:

  1. number, type NUMBER. The number to be converted; 1 yield A and 26 yield Z.

Example

@( uppercase( 1 ) ), @( uppercase( 25 ) ) 

Result: A, Y

Note that the construction @ ( ) around the function means that the result of the function is displayed in the text. This construction must be used in a text part of a model document. The switch from ITP mode to text mode in a model document is made with the # characters. An ITP model document starts in text model, the #BEGIN makes the switch to ITP mode.

Values <=0 return the last character in the alphabet. Positive values are returned modulo the number of characters in the alpabet. For example, ordinal(1) == ordinal(27) == 'A'.