2016-03-18 11:36:04 +00:00
|
|
|
The '''LCASE$''' function changes the uppercase letters of a {{KW|STRING}} to lowercase.
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
{{PageSyntax}}
|
2016-03-18 11:36:04 +00:00
|
|
|
:''result$'' = '''LCASE$('''{{Parameter|text$}}''')'''
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
{{PageDescription}}
|
|
|
|
* Normally used to guarantee that user input is not capitalized.
|
|
|
|
* Will not affect non alphabet string characters.
|
|
|
|
|
|
|
|
|
2016-03-18 11:36:04 +00:00
|
|
|
''Example:'' The following code guarantees that all user letter entries will be lower case:
|
2015-08-02 12:12:44 +00:00
|
|
|
{{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}}
|
2016-03-18 11:36:04 +00:00
|
|
|
* [[UCASE$]] {{text|(upper case)}}
|
|
|
|
* [[INKEY$]]
|
|
|
|
* [[INPUT$]]
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
{{PageNavigation}}
|