PRIORITY$

From CometWiki

(Difference between revisions)
Jump to: navigation, search
Badge (Talk | contribs)
(New page: == PRIORITY$ == <pre> System variable: PRIORITY$ Length: 1 Description: The system variable named PRIORITY$ is a one-byte string with a value ranging from "00" hex to ...)

Latest revision as of 05:19, 1 June 2009

PRIORITY$

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 Internet Basic 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$.  

Personal tools