DIAdem Help

VBScript constant: vbDefaultButton3

  • Updated2024-09-12
  • 1 minute(s) read

VBScript constant: vbDefaultButton3

Provides a constant for the third button for the MsgBox method.

Object.vbDefaultButton3
ObjectVBS
The constant belongs to the VBS functionality. You do not need to specify this object.
Object.vbDefaultButton3Variant with read access
vbDefaultButton3 has the value 512.

The following example displays the buttons Yes, No, Cancel, and Help in a message in which the third button is the default button:

Call MsgBox("Hello World", vbYesNoCancel + vbDefaultButton3 + vbMsgBoxHelpButton )