mirror of
https://github.com/QB64Official/qb64.git
synced 2024-09-28 11:17:47 +00:00
29 lines
696 B
Text
29 lines
696 B
Text
The [[LCASE$]] function returns 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}}
|
|
K$ = {{Cl|LCASE$}}({{Cl|INKEY$}})
|
|
{{Cl|DO...LOOP|LOOP}} {{Cl|DO...LOOP|UNTIL}} K$ = "y" {{Cl|OR}} K$ = "n"
|
|
{{CodeEnd}}
|
|
|
|
|
|
{{PageSeeAlso}}
|
|
* [[UCASE$]] {{text|(upper case)}}
|
|
* [[INKEY$]]
|
|
* [[INPUT$]]
|
|
|
|
|
|
{{PageNavigation}}
|