mirror of
https://github.com/QB64Official/qb64.git
synced 2024-09-28 11:17:47 +00:00
31 lines
554 B
Markdown
31 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$)
|