$Upcase: Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Automatically generated page update)
 
m (indexing test comment)
Line 39: Line 39:
<td>U.S. English</td>
<td>U.S. English</td>
</tr>
</tr>
<tr>
<tr>
<td>
<td>$UPCASE('�le d'Orl�ans','FRENCHC')</td>
<p class="code"><var>$UPCASE('�le d'Orl�ans','FRENCHC')</var>
</p></td>
<td>
<td>
<p class="code"><var>'�LE D'ORL�ANS'</var>
<p class="code"><var>'�LE D'ORL�ANS'</var>
Line 48: Line 47:
<td>French Canadian</td>
<td>French Canadian</td>
</tr>
</tr>
<tr>
<tr>
<td>
<td><p class="codeInTable">$UPCASE('�le d'Orl�ans')</p></td>
<p class="code"><var>$UPCASE('�le d'Orl�ans')</var>
<td><p class="codeInTable">'ILE D'ORLeANS</p></td>
</p></td>
<td>
<p class="code"><var>'ILE D'ORLeANS</var>
</p></td>
<td>U.S. English</td>
<td>U.S. English</td>
</tr>
</tr>
Line 60: Line 56:
<b>Note</b>
<b>Note</b>
<p>In U.S. English no accented characters have case translation.</p>
<p>In U.S. English no accented characters have case translation.</p>
<!— Index terms
toUpper (String function) -->
[[Category:SOUL $functions]]
[[Category:SOUL $functions]]

Revision as of 23:20, 28 January 2014

The $UPCASE function translates a lowercase or mixed-case string into an uppercase-only string. The translation affects only the uppercase letters of the specified language.

Syntax

$UPCASE(string [,language])

where:

The string argument represents the characters to verify. which must be entered as follows:

  • A literal enclosed by quotation marks.
  • A %variable.
  • A field name without quotation marks. In this case, the function call must be embedded in a FOR EACH RECORD loop where the current value of the field is verified.

The optional language argument specifies the language to use. The language argument is handled as follows:

  • Omitting this argument instructs Model 204 to perform the validation for U.S. English, even if the value of the LANGUSER parameter is not US.
  • An asterisk enclosed in quotation marks ('*') instructs Model 204 to use the value of the LANGUSER parameter.
  • A literal name of a valid language enclosed in quotation marks. If the name you enter is not supported, the request is canceled with an error message. See The LANGUSER parameter in the Rocket Model 204 Parameter and Command Reference Manual for the valid values.

Examples

The following examples return uppercase strings for mixed case entries.

Function code... Returns... Language

$UPCASE('Name and address')

'NAME AND ADDRESS'

U.S. English
$UPCASE('�le d'Orl�ans','FRENCHC')

'�LE D'ORL�ANS'

French Canadian

$UPCASE('�le d'Orl�ans')

'ILE D'ORLeANS

U.S. English

Note

In U.S. English no accented characters have case translation.

<!— Index terms toUpper (String function) -->