upper: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: ==Function upper== Returns the upper case version of a string. If the number of characters is not specified then the whole string is converted to upper case. ===Usage=== <source lang="mtm...)
 
m (Applied Template:MacroFunction)
Line 1: Line 1:
==Function upper==
{{MacroFunction
|name=upper
|description=
Returns the upper case version of a string. If the number of characters is not specified then the whole string is converted to upper case.
Returns the upper case version of a string. If the number of characters is not specified then the whole string is converted to upper case.


===Usage===
|usage=
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[h: str = upper(str)]
[h: str = upper(str)]
Line 8: Line 10:
</source>
</source>


 
|examples=
===Examples===
<source lang="mtmacro" line>
<source lang="mtmacro" line>
[r: upper("this Is a Test")]
[r: upper("this Is a Test")]
Line 17: Line 18:
   THIS IS A TEST
   THIS IS A TEST
   This Is a Test
   This Is a Test
}}
[[Category:String Function]]

Revision as of 05:39, 9 March 2009

upper() Function

Returns the upper case version of a string. If the number of characters is not specified then the whole string is converted to upper case.

Usage

[h: str = upper(str)]
[h: str = uper(str, numChars)]

Examples

[r: upper("this Is a Test")]
[r: lower("this Is a Test", 1)]

Returns

  THIS IS A TEST
This Is a Test