Programmer Guide/Command Reference/UPPER: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
Line 1: Line 1:
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
  <var>var</var> := UPPER <var>string</var>
  <var>var</var> := UPPER <var>string</var>
The {{STX}} command <code>UPPER</code> converts its string argument to upper case.
The {{STX}} command <code>UPPER</code> converts its string argument to upper case. Note that this command, transgressing the concept of [http://en.wikipedia.org/wiki/Orthogonality#Computer_science orthogonality in programming], will only process its ''first'' argument. Any further arguments will be silently discarded.


See also [[Programmer_Guide/Command_Reference/LOWER|<code>LOWER</code>]] and [[Programmer_Guide/Command_Reference/TRANSLATE|<code>TRANSLATE</code>]].
See also [[Programmer_Guide/Command_Reference/LOWER|<code>LOWER</code>]] and [[Programmer_Guide/Command_Reference/TRANSLATE|<code>TRANSLATE</code>]].
== Examples ==
#a := upper e!ns              // #a will be set to "E!NS"
#b := upper e!ns zwo threeish  // #b will ''also'' be set to "E!NS"

Revision as of 15:44, 7 May 2014

var := UPPER string

The STx command UPPER converts its string argument to upper case. Note that this command, transgressing the concept of orthogonality in programming, will only process its first argument. Any further arguments will be silently discarded.

See also LOWER and TRANSLATE.

Examples

#a := upper e!ns               // #a will be set to "E!NS"
#b := upper e!ns zwo threeish  // #b will also be set to "E!NS"

Navigation menu

Personal tools