forked from QB64-Phoenix-Edition/QB64pe
-
Notifications
You must be signed in to change notification settings - Fork 0
UCASE$
Samuel Gomes edited this page Nov 8, 2022
·
1 revision
The UCASE$ function returns an all-uppercase version of a STRING.
result$ = UCASE$(text$)
- Used to guarantee that all alphabetical characters in a STRING are capitalized.
- Does not affect non-alphabetical characters.
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"