*UPPER command: Difference between revisions

From m204wiki
Jump to navigation Jump to search
 
(6 intermediate revisions by 2 users not shown)
Line 11: Line 11:
==Usage notes==
==Usage notes==
<p>
<p>
The *UPPER command reactivates the translation of lowercase characters to uppercase characters. This translation, which is performed automatically by <var class="product">Model&nbsp;204</var>, causes lowercase input from the terminal to be converted to uppercase before it is processed. This translation can be deactivated with the *LOWER command.</p>
The *UPPER command reactivates the translation of lowercase characters to uppercase characters. This translation, which is performed automatically by <var class="product">Model&nbsp;204</var>, causes lowercase input from the terminal to be converted to uppercase before it is processed. This translation can be deactivated with the <var>[[*LOWER_command|*LOWER]]</var> command.</p>
<p>
<p>
You can enter *UPPER (in uppercase) at a terminal any time that <var class="product">Model&nbsp;204</var> is expecting input. Unless *UPPER is preceded by a leading blank or blanks, it is always processed as a command.</p>
You can enter *UPPER (in uppercase) at a terminal any time that <var class="product">Model&nbsp;204</var> is expecting input. Unless *UPPER is preceded by a leading blank or blanks, it is always processed as a command.</p>
Line 28: Line 28:
</p>
</p>
<p>
<p>
For a discussion of the PRINT statement, refer to the <var class="book">Model&nbsp;204 User Language Manual</var>.</p>
For more details about PRINT, refer to the [[Processing multiply occurring fields and field groups#PRINT and PRINT n statements|PRINT and PRINT n statements]] topic.</p>


<p class="note"><b>Note:</b> The keywords UPCASE and NOCASE can be used with screen input items. If UPCASE is specified, all input is translated to uppercase. If NOCASE is specified, then input is not translated. If neither UPCASE nor NOCASE is specified, the *UPPER/*LOWER setting determines whether or not screen input is translated.    </p>
<p class="note"><b>Note:</b> The keywords UPCASE and NOCASE can be used with screen input items. If UPCASE is specified, all input is translated to uppercase. If NOCASE is specified, then input is not translated. If neither UPCASE nor NOCASE is specified, the *UPPER/*LOWER setting determines whether or not screen input is translated.    </p>


[[Category: General user commands]]
[[Category: User commands]]
[[Category:Commands]]
[[Category:Commands]]

Latest revision as of 15:59, 4 February 2019

Summary

Privileges
Any user
Function
Reactivates Model 204's automatic translation of lowercase characters to uppercase characters

Syntax

*UPPER

Usage notes

The *UPPER command reactivates the translation of lowercase characters to uppercase characters. This translation, which is performed automatically by Model 204, causes lowercase input from the terminal to be converted to uppercase before it is processed. This translation can be deactivated with the *LOWER command.

You can enter *UPPER (in uppercase) at a terminal any time that Model 204 is expecting input. Unless *UPPER is preceded by a leading blank or blanks, it is always processed as a command.

For example, the following request invokes the *UPPER command and then displays the string "hello" and the string "HELLO" both in uppercase at the terminal:

BEGIN PRINT '*UPPER' PRINT 'hello' PRINT 'HELLO' END

On the other hand, the following request displays the string "* UPPER" in uppercase at the terminal:

BEGIN PRINT '*UPPER' END

For more details about PRINT, refer to the PRINT and PRINT n statements topic.

Note: The keywords UPCASE and NOCASE can be used with screen input items. If UPCASE is specified, all input is translated to uppercase. If NOCASE is specified, then input is not translated. If neither UPCASE nor NOCASE is specified, the *UPPER/*LOWER setting determines whether or not screen input is translated.