User Tools

Site Tools


ugbasic:user:kw:upper
Translations of this page:


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:

ABBREVIATION

 Up

AVAILABLE ON

ALIAS FOR

ANY PROBLEM?

If you have encountered a problem using this command, if you think there is a bug or the explanation is unclear, please open an issue for this keyword on GitHub. Thank you!

POWERED BY