UCASE$ - QB64 Wiki


From QB64 Wiki

Revision as of 13:50, 9 August 2013 by Clippy (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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


result$ = UCASE$(text$)


  • 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:

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

See also:

Go to Keyword Reference - Alphabetical
Go to Keyword Reference - By usage
Go to Main WIKI Page
Personal tools