mirror of
https://github.com/QB64Official/qb64.git
synced 2024-08-22 11:25:08 +00:00
30 lines
554 B
Markdown
30 lines
554 B
Markdown
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$)
|