1
1
Fork 0
mirror of https://github.com/DualBrain/QB64.git synced 2023-11-19 13:10:13 +00:00
QB64-website/wiki/LCASE$.md
2022-12-24 19:12:43 -06:00

554 B

The LCASE$ function returns an all-lowercase version of a STRING.

Syntax

result$ = LCASE$(text$)

Description

  • Normally used to guarantee that user input is not capitalized.
  • Does not affect non-alphabetical characters.

Example(s)

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"

See Also