1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-01 15:00:38 +00:00
QB64-PE/internal/help/LCASE$.txt

31 lines
698 B
Plaintext
Raw Normal View History

The [[LCASE$]] function outputs an all-lowercase version of a [[STRING]].
{{PageSyntax}}
2017-10-10 14:55:21 +00:00
:{{Parameter|result$}} = [[LCASE$]]({{Parameter|text$}})
{{PageDescription}}
* Normally used to guarantee that user input is not capitalized.
2017-10-10 14:55:21 +00:00
* Does not affect non-alphabetical characters.
2017-10-10 14:55:21 +00:00
{{PageExamples}}
2016-03-18 11:36:04 +00:00
''Example:'' The following code guarantees that all user letter entries will be lower case:
2019-04-15 01:15:33 +00:00
{{CodeStart}}{{Cl|PRINT}} "Do you want to continue? (y/n)"
{{Cl|DO...LOOP|DO}}
K$ = {{Cl|LCASE$}}({{Cl|INKEY$}})
2019-04-15 01:15:33 +00:00
{{Cl|DO...LOOP|LOOP}} {{Cl|DO...LOOP|UNTIL}} K$ = "y" {{Cl|OR}} K$ = "n"
{{CodeEnd}}
{{PageSeeAlso}}
2016-03-18 11:36:04 +00:00
* [[UCASE$]] {{text|(upper case)}}
* [[INKEY$]]
* [[INPUT$]]
2019-04-15 01:15:33 +00:00
{{PageNavigation}}
<