# STATUS()

Syntax:

Then: handle = NEW STATUS()
Then:STATUS handle GET
Then:handle SET

Version Ref: 5.0.6

Description:

The STATUS object allows you to save/return the status of break, cursor, video, escape, and background. Allows subroutines to enable or disable these items, and then restore them to their original state.

Example:

MySub

If:
Then: declare save_status(5,.0,g)
If: save_status = ""
Then: save_status = new status()
If:
Then: status save_status get ' save current status
If:
Then: break off ; cursor on
'... more processing here ...
If:
Then: status save_status set ' restore original status
If:
Then: return