UCASE$: Difference between revisions
Jump to navigation
Jump to search
Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link
No edit summary |
No edit summary |
||
Line 22: | Line 22: | ||
{{PageSeeAlso}} | {{PageSeeAlso}} | ||
* [https://qb64phoenix.com/forum/showthread.php?tid=1232 Featured in our "Keyword of the Day" series] | |||
* [[LCASE$]] | * [[LCASE$]] | ||
* [[INKEY$]] | * [[INKEY$]] |
Latest revision as of 17:34, 25 May 2024
The UCASE$ function outputs an all-uppercase version of a STRING.
Syntax
- result$ = UCASE$(text$)
Description
- Used to guarantee that all alphabetical characters in a STRING are capitalized.
- Does not affect non-alphabetical characters.
Examples
Example: The following code guarantees that all letter key entries are capitalized:
PRINT "Do you want to continue? (y/n)" DO K$ = UCASE$(INKEY$) LOOP UNTIL K$ = "Y" OR K$ = "N" |
See also