| Introduction | MTB Statements | File System | Compiler | Applications | Reference Guide | Index |
| Language Structure | Data Division | I/O Format Division | Procedure Division | Mnemonics |
| Overview | Variable Names | Variable Types | Variable Length | Variable Classification | Data Division Statements | System Variables |
| System variable: | PRIORITY$ |
| Length: | 1 |
| Description: | The system variable named PRIORITY$ is a one-byte string with a value ranging from "00" hex to "FF" hex. The value of PRIORITY$ represents the number of task breaks Comet will skip before reactivating the task. The higher the number, the slower this program will run relative to other programs. PRIORITY$ can be interrogated and set by an MTB program. |
| Example 1: |
A=HEXDEC(PRIORITY$)This example shows how to interrogate the system variable named PRIORITY$. In this example, the priority value is converted to decimal and moved to a numeric variable named A. |
| Example 2: |
PRINT (0) "ENTER NEW PRIORITY (0 - 255):" INPUT (0) VALUE PRIORITY$ = DECHEX(VALUE,ERR)This example shows how to set the PRIORITY$ value. In this program segment, the user is prompted for a new priority value. The number is entered in decimal form, converted to hex, and assigned to the system variable named PRIORITY$. |