mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-09-07 09:30:15 +00:00
28 lines
No EOL
618 B
Text
28 lines
No EOL
618 B
Text
The {{KW|UCASE$}} function changes the lowercase letters of a {{KW|STRING}} to uppercase.
|
|
|
|
|
|
{{PageSyntax}}
|
|
:''result$'' = {{KW|UCASE$}}({{Parameter|text$}})
|
|
|
|
|
|
{{PageDescription}}
|
|
* Normally used to guarantee that user input is 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|UCASE$}}({{Cl|INKEY$}})
|
|
|
|
{{Cl|DO...LOOP|LOOP}} {{Cl|DO...LOOP|UNTIL}} K$ = "Y" {{Cl|OR}} K$ = "N"
|
|
{{CodeEnd}}
|
|
|
|
|
|
{{PageSeeAlso}}
|
|
* {{KW|LCASE$}}
|
|
|
|
|
|
{{PageNavigation}} |