
Verification Script Engine Reference Manual
24 User input functions
24.1 MsgBox()
Displays a message in a dialog box, waits for the user to click a button, and returns an Integer
indicating which button the user clicked.
Format : MsgBox( prompt, type, title )
Parameters:
prompt - Required. String expression displayed as the message in the dialog box.
type - Optional. Numeric expression that is the sum of values specifying the number
and type of buttons to display, the icon style to use, the identity of the default
button, and the modality of the message box. If omitted, the default value for
buttons is _MB_OK. ( See the list of possible values in the table below )
title - Optional. String expression displayed in the title bar of the dialog box. If you omit
title, the script name is placed in the title bar.
The type argument values are:
Display OK button only ( by Default ).
Display OK and Cancel buttons.
Display Retry and Cancel buttons.
Display Yes and No buttons.
Display Yes, No, and Cancel buttons.
Display Abort, Retry, and Ignore buttons.
Display Warning Message icon.
Display Information Message icon.
Display Warning Query icon.
Display Critical Message icon.
Second button is default.
Fourth button is default.
Return Values:
This function returns an integer value indicating which button the user clicked.
Komentarze do niniejszej Instrukcji