Teledyne LeCroy SAS_SATA Automation API manual User Manual

Page 129

Advertising
background image

 

Automation API for Teledyne LeCroy SAS/SATA Protocol Suite

123

SASVScriptEngine Object

Teledyne LeCroy

sas_vsengine->GetScriptVar( _bstr_t("MyVar"), &my_var

);

if( my_var.vt == VT_BSTR ) ProcessString(

my_var.bstrVal );

. . .

WSH:

. . .

Set Trace = Analyzer.OpenFile( TraceName ) ' Open the

trace.

Set VSEngine = Trace.GetVScriptEngine( VScript ) ' Get

VS Engine object.

Result = VSEngine.RunVScript

MyIntVar = VSEngine.GetScriptVar( "MyIntVar" )
' Suppose that MyIntVar contains an integer.
MyStrVar = VSEngine.GetScriptVar( "MyStrVar" )
' Suppose that MyStrVar contains a string.

MsgBox " MyIntVar = " & CStr(MyIntVar) & ", MyStrVar = "

& MyStrVar

Advertising