{{htmlmetatags>metatag-robots=()
metatag-title=(UPPER | ugBASIC User Manual)
metatag-keywords=(ugBASIC,Commodore 64,Commodore PLUS/4,ZX Spectrum)
metatag-description=(Manual page for UPPER)
metatag-media-og:image=(:ugbasic:logo-ugbasic-fb.png)
metatag-og:title=(UPPER | ugBASIC User Manual)
metatag-og:description=(Manual page for UPPER)
}}
====== ugBASIC User Manual ======
===== UPPER ✓ =====
===== SYNTAX =====
= UPPER(text)
==== PURPOSE ====
The UPPER command (short for "Upper Case") is a function that converts all lowercase
letters in a string to uppercase. In other words, it takes any string and returns a
new string that is identical to the first, but with all letters in uppercase.
If you want to compare two strings without regard to case, you can convert both
strings to uppercase before performing the comparison. You can use this command
to standardize user input, for example to ensure that all names are uppercase.
You can use it to make the output more readable or to conform to specific
formatting conventions.
==== EXAMPLE ====
x = UPPER( "ugBASIC" )
See also the following example files:
* ''[[https://github.com/spotlessmind1975/ugbasic/tree/main/examples/strings_cases_01.bas|strings_cases_01.bas]]''
==== ABBREVIATION ====
Up
==== AVAILABLE ON ====
==== ALIAS FOR ====
[[UCASE]]
==== ANY PROBLEM? ====
If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please [[https://github.com/spotlessmind1975/ugbasic/issues/new?title=ISSUE ON UPPER|open an issue]] for this keyword on GitHub. Thank you!===== POWERED BY =====
[[:ugbasic:user:index|{{ :ugbasic:user:logo-ugbasic.png?nolink&600 |}}]]