mirror of
https://github.com/QB64Official/qb64.git
synced 2024-08-30 18:50:15 +00:00
28 lines
618 B
Text
28 lines
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}}
|