UCASE$ function

Purpose | Return an all-uppercase (capitalized) version of a string.
Syntax | s$ = UCASE$(string_expression [,ANSI | OEM])

Remarks

UCASE$ returns a string equivalent to string_expression, except that lowercase letters in string_expression are converted to uppercase. The optional ANSI or OEM parameter specifies whether the conversion is made using the ANSI charset for the system, or the original IBM OEM charset. If no charset is specified, PowerBASIC for Windows uses the system ANSI charset, while PB/CC uses the IBM OEM charset. Only "International" characters in the range of CHR$(128) to CHR$(255) are affected by this parameter.

The OEM charset is based upon the original IBM OEM charset to ensure compatibility with programs written for all previous versions of the PowerBASIC compiler.

See also | ASC, LCASE$, MCASE$
Example | x$ = UCASE$("Beware of cats!")
Result | BEWARE OF CATS!