1
1
Fork 0
mirror of https://github.com/DualBrain/QB64.git synced 2023-11-19 13:10:13 +00:00
QB64-website/wiki/UCASE$.md
2022-12-24 19:12:43 -06:00

578 B

The UCASE$ function returns 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.

Example(s)

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