UCASE$ - QB64 Wiki

UCASE$

From QB64 Wiki

Jump to: navigation, search

The UCASE$ function changes the lowercase letters of a STRING to uppercase.


Syntax:

result$ = UCASE$(text$)


Description:

  • Normally used to guarantee that user input is capitalized.
  • Will not affect non alphabet string characters.


Code Examples:

The following code

PRINT "Do you want to continue? (y/n)" DO K$ = UCASE$(INKEY$) LOOP UNTIL K$ = "Y" OR K$ = "N"


See also:



Navigation:
Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page