DialogResult Property

Specifies the value returned by the Form.Execute method.

Values

ValueDescription
1OK
2Cancel
3Abort
4Retry
5Ignore
6Yes
7No
10Try Again
11Continue

Remarks

If the DialogResult property is set to any value other than 0, clicking the button closes the parent form. The return value from the Form.Execute method is the DialogResult of the button that was clicked. For example, to create an OK/Cancel dialog box, add two buttons and set their DialogResult properties to 1 and 2.

See Also

Button Object

Form Object

From the Sally manual (GPL-2.0-or-later), © 1997-2023 Open Salamander Authors; © 2025-2026 Elias Bachaalany. Source: manual source (zip) · original page in the Sally repository