UPPER$(string-expression)
Converts a string expression to upper case, using standard ASCII case folding rules.
Examples
Produces "HELLO".
PRINT UPPER$("Retro Rocket 123!")
Produces "RETRO ROCKET 123!".
REM Normalise case for comparison
a$ = "yes"
b$ = "YES"
IF UPPER$(a$) = UPPER$(b$) THEN
PRINT "They match!"
ENDIF
Notes
- Only affects ASCII letters a–z (97–122), converting them to A–Z (65–90).
- Non-alphabetic characters are unchanged.
- Useful for case-insensitive comparisons, normalisation, and text processing.
See also: LOWER$ · LEN · MID$