# CdlPDResultConstants enumeration
{: .no_toc }

Names the button that closed the extended Print dialog.

The enumeration is declared inside the [**CommonDialog**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md) class. Its members are used without a qualifier, or with the name of the enumeration. The values are those of the Windows `PD_RESULT_` constants of the `PRINTDLGEX` structure.

| Member | Value | Description |
|:-------|:------|:------------|
| **CdlPDResultCancel**{: #CdlPDResultCancel } | `&H0` | The user clicked **Cancel**. When [**CancelError**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#cancelerror) is **True**, the method raises error `CdlCancel` instead of returning this value. |
| **CdlPDResultPrint**{: #CdlPDResultPrint } | `&H1` | The user clicked **Print**. |
| **CdlPDResultApply**{: #CdlPDResultApply } | `&H2` | The user clicked **Apply**. |

## Used by

- [**CommonDialog**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md) class: [**ShowPrinterEx**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#showprinterex) (the return value)

## See Also

- [Enumerations](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/Enumerations/index.md) -- all the enumerations of the package
- [CommonDialog](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md) class
- [CdlPDConstants](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/Enumerations/CdlPDConstants.md) enumeration
