System Variables

From CometWiki

(Difference between revisions)
Jump to: navigation, search
 
Line 10: Line 10:
|Description
|Description
|-   
|-   
-
|CURPOS$   
+
|[[CURPOS$]]  
|2   
|2   
|hex-encoded   
|hex-encoded   
Line 17: Line 17:
byte 2 = column   
byte 2 = column   
|-
|-
-
|DATE   
+
|[[DATE]]  
|6.0   
|6.0   
|MMDDYY   
|MMDDYY   
|system date   
|system date   
|-
|-
-
|DATE$   
+
|[[DATE$]]  
|6   
|6   
|"MMDDYY"   
|"MMDDYY"   
system date   
system date   
|-
|-
-
|DAY$   
+
|[[DAY$]]  
|8   
|8   
|"MM/DD/YY"   
|"MM/DD/YY"   
|system date   
|system date   
|-
|-
-
|ENTERLEVEL   
+
|[[ENTERLEVEL]]  
|2.0   
|2.0   
|nn   
|nn   
|subprogram level number   
|subprogram level number   
|-
|-
-
|EXCP   
+
|[[EXCP]]  
|2.0   
|2.0   
|nn   
|nn   
|last Comet exception   
|last Comet exception   
|-
|-
-
|HELPKEY$   
+
|[[HELPKEY$]]  
|4   
|4   
|user-defined   
|user-defined   
|user-defined value for Comet Help System   
|user-defined value for Comet Help System   
|-
|-
-
|ITERM$   
+
|[[ITERM$]]  
|3   
|3   
|"Tnn" or "nnn"   
|"Tnn" or "nnn"   
|initiating terminal number   
|initiating terminal number   
|-
|-
-
|LONGYEAR   
+
|[[LONGYEAR]]  
|4.0   
|4.0   
|YYYY   
|YYYY   
|current year in long format   
|current year in long format   
|-
|-
-
|LONGYEAR$   
+
|[[LONGYEAR$]]  
|4   
|4   
|"YYYY"   
|"YYYY"   
|current year in long format   
|current year in long format   
|-
|-
-
|MESSAGE$   
+
|[[MESSAGE$]]  
|32   
|32   
|user-defined   
|user-defined   
|user-defined string for passing messages to overlays   
|user-defined string for passing messages to overlays   
|-
|-
-
|PARTITION$   
+
|[[PARTITION$]]  
|3   
|3   
|"Pnn" or "nnn"   
|"Pnn" or "nnn"   
|current partition number   
|current partition number   
|-
|-
-
|PRIORITY$   
+
|[[PRIORITY$]]  
|1   
|1   
|hex   
|hex   
|partition scheduling priority   
|partition scheduling priority   
|-
|-
-
|RUNSTATE   
+
|[[RUNSTATE]]  
|1.0   
|1.0   
|n   
|n   
|security value for current partition   
|security value for current partition   
|-
|-
-
|SYSPART$   
+
|[[SYSPART$]]  
|3   
|3   
|"Pnn" or "nnn"   
|"Pnn" or "nnn"   
|name of most recently activated background partition   
|name of most recently activated background partition   
|-
|-
-
|TERM$   
+
|[[TERM$]]  
|3   
|3   
|"Tnn" or "nnn"   
|"Tnn" or "nnn"   
|current terminal number   
|current terminal number   
|-
|-
-
|TIME$   
+
|[[TIME$]]  
|11   
|11   
|"HH:MM:SS.DD"   
|"HH:MM:SS.DD"   
|system time   
|system time   
|-
|-
-
|VERSION$
+
|[[VERSION$ ]]
|7   
|7   
|"XXX.XXX"   
|"XXX.XXX"   

Latest revision as of 04:17, 1 June 2009

Comet System Variables

Comet includes a number of system variables that may be used in an Internet Basic program without being defined in the Data Division.
Take care to not define your own variables with any of the following names:

Variable Length Format Description
CURPOS$ 2 hex-encoded current position of cursor

byte 1 = row byte 2 = column

DATE 6.0 MMDDYY system date
DATE$ 6 "MMDDYY"

system date

DAY$ 8 "MM/DD/YY" system date
ENTERLEVEL 2.0 nn subprogram level number
EXCP 2.0 nn last Comet exception
HELPKEY$ 4 user-defined user-defined value for Comet Help System
ITERM$ 3 "Tnn" or "nnn" initiating terminal number
LONGYEAR 4.0 YYYY current year in long format
LONGYEAR$ 4 "YYYY" current year in long format
MESSAGE$ 32 user-defined user-defined string for passing messages to overlays
PARTITION$ 3 "Pnn" or "nnn" current partition number
PRIORITY$ 1 hex partition scheduling priority
RUNSTATE 1.0 n security value for current partition
SYSPART$ 3 "Pnn" or "nnn" name of most recently activated background partition
TERM$ 3 "Tnn" or "nnn" current terminal number
TIME$ 11 "HH:MM:SS.DD" system time
VERSION$ 7 "XXX.XXX" current Comet system version number
Personal tools