|
|||||||
QTIPS - Toggling BellA reader recently asked how she could get some messages to sound a beep when displaying but prevent others. Setting the appropriate prompt in the environment window caused all messages to bell. There are two ways of achieving this depending upon whether you want a particular message ALWAYS to bell, or whether you want the bell status to be toggled depending upon circumstances. The first method is simply to place the literal %B% within the body of the message, which will be interpreted as a bell at display. EG 0001 MESSAGE = "FATAL ERROR %B%" 0002 CALL MSG(MESSAGE, "", "", "") The second method relies upon toggling the system environment parameter which controls whether a bell sounds with a message. This is in @ENVIRON.SET<34>. If a bell is desired, toggle this field to 1, EG 0001 MESSAGE = "FATAL ERROR" 0002 @ENVIRON.SET<24> = 1 0003 CALL MSG(MESSAGE, "", "", "") 0004 @ENVIRON.SET<24> = 0 (Volume 1, Issue 9, Page 3) |
|||||||
| |||||||