mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-16 16:44:05 +00:00
6e01fc8dce
Added new _STRCMP and _STRICMP commands for quick string comparisons. Cleaned up QB64 to finish removing the QUI (quick user insert) code and folders. Altered UCASE and LCASE routines to be faster in some situations for us.
28 lines
No EOL
622 B
Text
28 lines
No EOL
622 B
Text
The {{KW|LCASE$}} function changes the uppercase letters of a {{KW|STRING}} to lowercase.
|
|
|
|
|
|
{{PageSyntax}}
|
|
:''result$'' = {{KW|LCASE$}}({{Parameter|text$}})
|
|
|
|
|
|
{{PageDescription}}
|
|
* Normally used to guarantee that user input is not capitalized.
|
|
* Will not affect non alphabet string characters.
|
|
|
|
|
|
{{PageExamples}}
|
|
:The following code
|
|
{{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}}
|
|
* {{KW|UCASE$}}
|
|
|
|
|
|
{{PageNavigation}} |