HUSH |
![]() ![]() ![]() |
The HUSH statement enables or disables display output.
Format
HUSH OFF {SETTING var} HUSH ON {SETTING var} HUSH expr {SETTING var}
where
The HUSH ON statement causes all output sent to the display by CRT, DISPLAY or PRINT statements to be suppressed. The HUSH OFF statement re-enables display.
The HUSH expr format of this statement is equivalent to HUSH ON if the value of expr is non-zero and HUSH OFF if expr is zero.
The optional SETTING clause saves the previous state of display output control in var which can be used later to revert to that state. Alternatively, the previous state can be obtained using the STATUS() function immediately after the HUSH statement. In either case, the value is 1 if output was suppressed or 0 if it was enabled.
Example
HUSH ON EXECUTE "SELECT STOCK.FILE WITH QTY > 50" HUSH OFF
This program fragment suppresses display while the SELECT statement is executed. |