# CdlOFNShareViResultConstants enumeration
{: .no_toc }

Tells the File Open or File Save dialog how to answer a network sharing violation.

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 `OFN_SHAREWARN`, `OFN_SHARENOWARN` and `OFN_SHAREFALLTHROUGH` constants. An event handler sets one of them in the *Result* parameter of the [**FileShareViolation**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#fileshareviolation) event.

| Member | Value | Description |
|:-------|:------|:------------|
| **CdlOFNShareViResultWarn**{: #CdlOFNShareViResultWarn } | `&H0` | The dialog shows its standard warning and stays open. This is the value when the handler sets nothing. |
| **CdlOFNShareViResultNoWarn**{: #CdlOFNShareViResultNoWarn } | `&H1` | The dialog shows no message and does not accept the file, so the handler can show a message of its own. |
| **CdlOFNShareViResultFallThrough**{: #CdlOFNShareViResultFallThrough } | `&H2` | The dialog accepts the file as if there were no violation and returns its name. |

## Used by

- [**CommonDialog**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md) class: [**FileShareViolation**](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/CommonDialog.md#fileshareviolation) event (the *Result* parameter)

## 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
- [CdlOFNConstants](/twinBASIC-docs/tB/Packages/Contributed/VBComDlg/Enumerations/CdlOFNConstants.md) enumeration
