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 all the lowercase alphabetic characters in string_expression are converted to uppercase.

The optional ANSI or OEM parameter specifies whether string_expression is converted to uppercase using the ANSI or OEM charset. If no charset option is selected, then the systems current ANSI charset is used to convert string_expression to uppercase. The PowerBASIC Console Compiler defaults to using the Console’s current OEM charset to convert string_expression. Only "International" characters in the range CHR$(128) to CHR$(255) are affected by the charset parameter.

See also

ASC, LCASE$, MCASE$

Example

x$ = UCASE$("Beware of cats!")

Result

BEWARE OF CATS!