LCASE$: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
(Created page with "The LCASE$ function outputs an all-lowercase version of a STRING. {{PageSyntax}} :{{Parameter|result$}} = LCASE$({{Parameter|text$}}) {{PageDescription}} * Normally used to guarantee that user input is not capitalized. * Does not affect non-alphabetical characters. {{PageExamples}} ''Example:'' The following code guarantees that all user letter entries will be lower case: {{CodeStart}}{{Cl|PRINT}} "Do you want to continue? (y/n)" {{Cl|DO...LOOP|DO}}...")
 
No edit summary
 
(One intermediate revision by the same user not shown)
Line 22: Line 22:


{{PageSeeAlso}}
{{PageSeeAlso}}
* [[UCASE$]] {{text|(upper case)}}
* [https://qb64phoenix.com/forum/showthread.php?tid=1232 Featured in our "Keyword of the Day" series]
* [[UCASE$]] {{Text|(upper case)}}
* [[INKEY$]]
* [[INKEY$]]
* [[INPUT$]]
* [[INPUT$]]

Latest revision as of 17:34, 25 May 2024

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