1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-05 22:50:23 +00:00
QB64-PE/internal/help/UCASE$.txt
2016-03-18 08:36:04 -03:00

28 lines
769 B
Plaintext

The '''UCASE$''' function changes the lowercase letters of a {{KW|STRING}} to uppercase.
{{PageSyntax}}
:''result$'' = '''UCASE$('''{{Parameter|text$}}''')'''
{{PageDescription}}
* Used to guarantee that all alphabetical letters in a [[STRING]] are capitalized.
* Will not affect non alphabet string characters. Will not shift key characters.
''Example:'' The following code guarantees that all letter key entries are capitalized:
{{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}}
* [[LCASE$]] {{text|(lower case)}}
* [[INKEY$]]
* [[INPUT$]]
{{PageNavigation}}