This property defines the value which is assigned on the button click to the ModalResult of the parent form if it was opened in the modal mode.
mrNone | 0 |
mrOk | 1 |
mrCancel | 2 |
mrAbort | 3 |
mrRetry | 4 |
mrIgnore | 5 |
mrYes | 6 |
mrNo | 7 |
mrClose | 8 |
mrHelp | 9 |
mrTryAgain | 10 |
mrContinue | 11 |
mrAll | 12 |
mrNoToAll | 13 |
mrYesToAll | 14 |
object.ModalResult
Part | Attribute | Type | Description |
---|---|---|---|
object |
Required | The object always implements the
ISButton interface |
int
Display some information about the specified button, including the ModalResult property value.
Dim aButton
Dim aControlInfo
Set aButton = Form.Controls_("btnDemo")
aControlInfo =_
"Caption: " & aButton.Caption & vbNewLine &_
"ShortName: " & aButton.ShortName & vbNewLine &_
"TypeName: " & aButton.TypeName & vbNewLine &_
"Modal Result: " & aButton.ModalResult
Profile.MsgBox(aControlInfo)
In Profile Client v8 on User Interface ModalResult cannot be found.