Language Reference

MSG

Return the characters displayed in the message area.

Example

40

OUTPUT 723;"MSG?;"

Query the

message to

the computer .

 

50

ALLOCATE

Message$[40]

Create

computer array (string) for

 

 

 

 

storage

of character

message .

 

 

60

ENTER 723

USING "-K";Cal,Cor,Msg$

Assign

the messages

to two

Boolean

 

 

 

 

variables

and one string.

(The HP

 

 

 

 

BASIC code for image, 0K, enters line

 

 

 

 

feeds into the string.)

 

 

70

PRINT

 

 

 

 

 

 

 

80

IF Cal THEN PRINT "uncalibrated"

 

 

 

 

 

 

90

IF Cor THEN PRINT "uncorrected"

 

 

 

 

 

 

100

PRINT Msg$[3]

Print the string, beginning with the

 

 

 

 

third character.

 

 

Description The MSG query returns the characters displayed in the message area on the screen.

The query returns 2 Boolean responses that indicate the presence of UNCAL and UNCOR, respectively. Whenever a message is in the message area, or UNCAL or UNCOR is displayed, the MESSAGE bit of the status byte is set true.

7-320