Ivscriptengineevents::onvscriptreportupdated – Teledyne LeCroy SAS_SATA Automation API manual User Manual
Page 136
Teledyne LeCroy
SASVScriptEngine Object Events
130
Automation API for Teledyne LeCroy SAS/SATA Protocol Suite
IVScriptEngineEvents::OnVScriptReportUpdated
HRESULT OnVScriptReportUpdated (
[in] BSTR newline,
[in] int tag )
Fires when running a verification script. Calls the ReportText(newLine) function (refer to
the SASTracer Verification Script Engine Manual for details on the ReportText function).
Parameters
newline
New portion of text reported by the verification script
tag
VSE object tag
Return Value
Remarks
Make sure that C++ event handlers have the __stdcall calling convention.
Example
C++:
HRESULT __stdcall OnVScriptReportUpdated (BSTR newLine,
int TAG )
{
TRACE( "Line: %s, TAG: %d\n", newLine, TAG );
. . .
return S_OK;
}
VBA (MS Excel):
Public WithEvents VSEEvents As VScriptEngine
Public LineIndex As Integer
. . .
Private Sub VSEEvents_OnVScriptReportUpdated(ByVal
newLine As String,
ByVal Tag
As Long)
ThisWorkbook.Sheets("Sheet1").Cells(LineIndex, 1) =
newLine
LineIndex = LineIndex + 1
End Sub