2021-04-25 22:40:25 +00:00
|
|
|
The [[UCASE$]] function returns an all-uppercase version of a [[STRING]].
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
{{PageSyntax}}
|
2017-10-10 14:55:21 +00:00
|
|
|
:{{Parameter|result$}} = [[UCASE$]]({{Parameter|text$}})
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
{{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.
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
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)"
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
{{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"
|
2015-08-02 12:12:44 +00:00
|
|
|
{{CodeEnd}}
|
|
|
|
|
|
|
|
|
|
|
|
{{PageSeeAlso}}
|
2016-03-18 11:36:04 +00:00
|
|
|
* [[LCASE$]] {{text|(lower case)}}
|
|
|
|
* [[INKEY$]]
|
|
|
|
* [[INPUT$]]
|
2015-08-02 12:12:44 +00:00
|
|
|
|
|
|
|
|
2019-04-15 01:15:33 +00:00
|
|
|
{{PageNavigation}}
|