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. 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.
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>]].

Revision as of 15:45, 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, 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