UCASE$: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
(Created page with "The UCASE$ function outputs an all-uppercase version of a STRING. {{PageSyntax}} :{{Parameter|result$}} = UCASE$({{Parameter|text$}}) {{PageDescription}} * Used to guarantee that all alphabetical characters in a STRING are capitalized. * Does not affect non-alphabetical characters. {{PageExamples}} ''Example:'' The following code guarantees that all letter key entries are capitalized: {{CodeStart}}{{Cl|PRINT}} "Do you want to continue? (y/n)" {{Cl|...")
 
No edit summary
Line 22: Line 22:


{{PageSeeAlso}}
{{PageSeeAlso}}
* [[LCASE$]] {{text|(lower case)}}
* [[LCASE$]]
* [[INKEY$]]
* [[INKEY$]]
* [[INPUT$]]
* [[INPUT$]]

Revision as of 21:39, 2 February 2023

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



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link