Programmer Guide/Command Reference/UPPER: Difference between revisions

From STX Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{DISPLAYTITLE:{{SUBPAGENAME}}}}
{{PG_StringCommands}}
  <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, not even causing an error message to be emitted or a return code to be set.


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"

Latest revision as of 10:20, 4 March 2016

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, not even causing an error message to be emitted or a return code to be set.

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