Displays
message box showing the message msg passed.
buttons enables you to customize the
buttons and icon displayed in the message box to a limited extent. You get a
fixed choice of button text and button positions. The value of Buttons is the
sum of values that describe the number and labelling of the buttons, the icon,
and the default button.There are three groups of button values; each group
offers choices for a particular feature
Parameters:
Name |
Type |
Description |
||||||||||||||||||||||||||||||||||||||
msg |
String |
Message
to be displayed by message box |
||||||||||||||||||||||||||||||||||||||
buttons |
Integer |
The value
of buttons is the sum of values
that describe the number and labelling of the buttons, the icon, and the default
button.There are three groups of button values; each group offers choices for
a particular feature. Example: If you want the buttons to be
the "Abort, Retry, and Ignore" set, with a Caution icon, and Retry
as the default, you would add up 2 + 48 + 256 = 306. Group 1 :
Number and Type of Buttons
Group 2 :
Icon to be Displayed
Group 3 :
Selection of Default Button
|
Returns:
Type |
Value |
Description |
||||||||||||||||||
String |
Integer |
Returned
value indicates which button was clicked.
Hint: If you
don't use the optional parameters, MsgBox
can be called without handling result. |
Available
in:
WindowMain |
WindowLink |
YES |
YES |
Used in:
XojoScript
Name |
GUID |
Import
ISR payment file |
52C27AC4-24B7-4B7D-9107-6223B4E10E45 |
Hint: You can find more references to
XojoScripts which make use of this function by sending the following SQL
statement to the database:
Select
id,GUID, ScriptName,ScriptCode from im_scripts where ScriptCode Like '%MsgBox%'
Example
XojoScript:
Dim
MsgResult As Integer
MsgResult
= MsgBox("A
Timeout occured!" + EOL + EOL + "Continue?",17)
If
MsgResult = 2 Then
// Cancel Pressed
MsgBox("BYE!")
Return
Else
// Your code goes here
MsgBox("OK!")
End
If