ISButton.Default

Description

If this property is True, the button's OnClick event handler executes when the user presses Enter.

Syntax

object.Default

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

Return Value

bool

Example

Display some information about the specified button, including the value of the property 'Default'.

Dim aButton
Dim aControlInfo

Set aButton = Form.Controls_("btnDemo")

aControlInfo =_
  "Caption: " & aButton.Caption & vbNewLine &_ 
  "ShortName: " & aButton.ShortName & vbNewLine &_
  "TypeName: " & aButton.TypeName & vbNewLine &_
  "Default: " & aButton.Default                               
  
Profile.MsgBox(aControlInfo)  
Note: This macro should be executed in any event handler of the form control.

In Profile Client v8 on User Interface Default can be found in Maintain > Templates > Health Record Collection Templates > Open the selected form template > Open form editor > Object Inspector > Select the button in the controls tree > Default.

Version information

Added in v7.8.0