Message.Optional (gb.form)

Static Function Optional ( Message As String, Button As String, Key As String [ , Icon As String, Force As Boolean ] ) As Integer

Display an optional warning message box, with a check-box that allows the user to disable the message.

  • Message : the message to be displayed.

  • Button : the name of the validation button.

  • Key : a setting key that will be used to store if the optional message must be displayed or not.

  • Icon : an optional icon.

  • Force : if set, the optional message box is displayed, and the user choice is ignored.

The index of the selected button is returned. So this functions always returns 1.