1 ivscriptengineevents::onvscriptreportupdated, Notification, Ivscriptengineevents:: onvscriptfinished – Teledyne LeCroy SAS_SATA Tracer_Trainer Automation API Manual User Manual

Page 85

Advertising
background image

LeCroy Corporation

Automation API for SAS/SATATracer/Trainer

Manual Version 1.11

85

9.1.1 IVScriptEngineEvents::OnVScriptReportUpdated


HRESULT OnVScriptReportUpdated (
[in] BSTR newline,
[in] int tag )

Fires when running a verification script. Calls the ReportText( newLine ) function (please
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's

tag

Return values


Remarks

Make sure that C++ event handlers have __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

Advertising