PPB-Panel-ID | pic 9(4) comp-x. |
PPB-Panel-ID | The handle of the panel to be deleted. |
None
This example deletes the panel whose identifier has been saved in the variable ws-save-panel-id.
move ws-save-panel-id to ppb-panel-id. move pf-delete-panel to ppb-function. call "PANELS" using panels-parameter-block. if ppb-status not = zero * (code to abort)
Comments:
When you delete a panel, both the panel identifier and the storage area that had been allocated to the panel becomes available for reuse. Any attempt to access the panel after it has been deleted returns a Panels error code 1, indicating that the attempt was unsuccessful.
If you delete a panel that was enabled, it disappears from the screen.