1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-16 21:15:15 +00:00
qb64/internal/help/LCASE$.md

31 lines
554 B
Markdown
Raw Normal View History

The [LCASE$](LCASE$) function returns an all-lowercase version of a [STRING](STRING).
## Syntax
> result$ = [LCASE$](LCASE$)(text$)
## Description
* Normally used to guarantee that user input is not capitalized.
* Does not affect non-alphabetical characters.
## Example(s)
The following code guarantees that all user letter entries will be lower case:
```vb
PRINT "Do you want to continue? (y/n)"
DO
K$ = LCASE$(INKEY$)
LOOP UNTIL K$ = "y" OR K$ = "n"
```
## See Also
* [UCASE$](UCASE$) (upper case)
* [INKEY$](INKEY$)
* [INPUT$](INPUT$)