QB64.com

QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.

The UCASE$ function returns an all-uppercase version of a STRING.

Syntax

result$ = UCASE$(text$)

Description

Example(s)

The following code guarantees that all letter key entries are capitalized:


PRINT "Do you want to continue? (y/n)"

DO
    K$ = UCASE$(INKEY$)
LOOP UNTIL K$ = "Y" OR K$ = "N"

See Also