LeCroy USB Protocol Suite Reference Manual page 95

Verification script engine
Table of Contents

Advertisement

LeCroy Corporation
Return Values:
This function returns an integer value indicating which button was clicked.
Constant
_MB_OK
_MB_CANCEL
_MB_YES
_MB_NO
_MB_RETRY
_MB_IGNORE
_MB_ABORT
Remark:
This function works only for VS Engines controlled via a GUI. For VSEs controlled by COM/Automation™ clients,
it does nothing.
This function "locks" the application, which means that there is no access to other application features until the
dialog box is closed. To prevent too many MsgBox calls (in case a script is not written correctly), VSE keeps
track of all function calls demanding user interaction and doesn't show dialog boxes if some customizable limit is
exceeded (returns _MB_OK in this case).
Example:
...
if(Something)
{
...
str = "Something happened!!!\nShould we continue?"
result = MsgBox(str ,
_MB_YESNOCANCEL | _MB_EXCLAMATION,
"Some Title");
if(result != _MB_YES)
ScriptDone();
# Go on...
}
Verification Script Engine Reference Manual
Description
OK button was clicked.
Cancel button was clicked.
Yes button was clicked.
No button was clicked.
Retry button was clicked.
Ignore button was clicked.
Abort button was clicked.
Page 95 of 107

Advertisement

Table of Contents
loading

Table of Contents