# SAVE WINDOW Save Current Window

> Source: https://manual.pvxplus.com/directives/savewindow

## Format

**SAVE WINDOW TO** *filename$* **\[**,**ERR**=*stmtref*\]

***Where:***

|  |  |
| --- | --- |
| *filename$* | Valid filename. String expression. |
| *stmtref* | Program line number or statement label to which to transfer control. |

## Description

Use the **SAVE WINDOW** directive to save only the ***current*** window, regardless if it is a child or parent window. If the child window is inside a dialogue, this directive will not save the outer dialogue.

*(The SAVE WINDOW directive was added in PxPlus 2018.)*

## See Also

**[SAVE CONTROL Save Image of Control](https://manual.pvxplus.com/directives/save-control)**
