[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'InterfaceBase' (#lcl)

# TDialogButton.ModalResult

The modal result value returned when the button is clicked.

## Declaration

Source position: interfacebase.pp line 96

`public property TDialogButton.ModalResult : LongInt read FModalResult write FModalResult;`

## Description

ModalResult is a LongInt property which contains the modal result value returned when the button is clicked in the dialog.

ModalResult can contain a value defined the TModalResult range type found in the RTL system.uitypes.pp unit. Applications will normally want to use the descriptive modal result constants when reading or writing the value, like:

- mrNone
- mrOK
- mrCancel
- mrAbort
- mrRetry
- mrIgnore
- mrYes
- mrNo
- mrAll
- mrNoToAll
- mrYesToAll
- mrClose

The default value for the property is set to 0 (mrNone) in the Create constructor.

## See also

TDialogButton.Create |  | Constructor for the class instance.