1
1
Fork 0
mirror of https://github.com/QB64Official/qb64.git synced 2024-07-03 08:51:22 +00:00
qb64/internal/help/UCASE$.txt

30 lines
713 B
Plaintext
Raw Normal View History

2021-04-25 22:40:25 +00:00
The [[UCASE$]] function returns an all-uppercase version of a [[STRING]].
{{PageSyntax}}
2017-10-10 14:55:21 +00:00
:{{Parameter|result$}} = [[UCASE$]]({{Parameter|text$}})
{{PageDescription}}
2017-10-10 14:55:21 +00:00
* Used to guarantee that all alphabetical characters in a [[STRING]] are capitalized.
* Does not affect non-alphabetical characters.
2017-10-10 14:55:21 +00:00
{{PageExamples}}
2016-03-18 11:36:04 +00:00
''Example:'' The following code guarantees that all letter key entries are capitalized:
2019-04-15 01:15:33 +00:00
{{CodeStart}}{{Cl|PRINT}} "Do you want to continue? (y/n)"
{{Cl|DO...LOOP|DO}}
K$ = {{Cl|UCASE$}}({{Cl|INKEY$}})
2019-04-15 01:15:33 +00:00
{{Cl|DO...LOOP|LOOP}} {{Cl|DO...LOOP|UNTIL}} K$ = "Y" {{Cl|OR}} K$ = "N"
{{CodeEnd}}
{{PageSeeAlso}}
2016-03-18 11:36:04 +00:00
* [[LCASE$]] {{text|(lower case)}}
* [[INKEY$]]
* [[INPUT$]]
2019-04-15 01:15:33 +00:00
{{PageNavigation}}