LCASE$

From QB64 Phoenix Edition Wiki
Revision as of 22:34, 11 February 2023 by RhoSigma (talk | contribs)
Jump to navigation Jump to search

The LCASE$ function outputs 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.


Examples

Example: 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



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link