forked from QB64-Phoenix-Edition/QB64pe
-
Notifications
You must be signed in to change notification settings - Fork 0
LCASE$
Samuel Gomes edited this page Nov 8, 2022
·
1 revision
The LCASE$ function returns an all-lowercase version of a STRING.
result$ = LCASE$(text$)
- Normally used to guarantee that user input is not capitalized.
- Does not affect non-alphabetical characters.
The following code guarantees that all user letter entries will be lower case:
PRINT "Do you want to continue? (y/n)"
DO
K$ = LCASE$(INKEY$)
LOOP UNTIL K$ = "y" OR K$ = "n"