Using the Process Analyst > Process Analyst for Developers > Automation Model > IPen.Clear [Method]

IPen.Clear [Method]

Clears every sample belonging to this pen from the internal cache. (Note: This does not remove logged samples from the server)

Defined As

Execution Result

If the function succeeds the return value will be Success. If the pen is deleted then the return value will be GeneralFailure.

Calling Syntax

Assumes you have passed a valid pen object into the function.

[VBA]

Sub Example(pen As Object)
pen.Clear
End Sub

[Cicode]

FUNCTION Example(OBJECT hPen)
_ObjectCallMethod(hPen, "Clear");
END