ISButton.ModalResult

Description

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

Syntax

object.ModalResult

Part Attribute Type Description
object Required
The object always implements the ISButton interface

Return Value

int

Example

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)  
Note: This macro should be executed in any event handler of the form control. You can find more information how to use this property in the description to Profile.OpenFormByPath.

In Profile Client v8 on User Interface ModalResult cannot be found.

Version information

Added in v7.8.0