|
ClearResult Method
|
|
|
Applies To
|
BasicTcl Object, AdvancedTcl Object
|
|
Prototype
|
ClearResult(Interpreter As Long) As Long
|
|
Input
|
The "Interpreter" parameter, which must be a valid interpreter pointer.
|
|
Output
|
None.
|
|
Returns
|
Undefined.
|
|
COM Results
|
S_OK: Success.
E_INVALIDARG: Either a NULL pointer was passed or the "Interpreter" parameter is invalid. |
|
Side Effects
|
The current string result for the specified interpreter is cleared.
|
|
Description
|
This method is a wrapper around the Tcl_ResetResult function.
|
|
Notes
|
None.
|
|
Example
|
Private Sub Command1_Click()
Dim poTcl As TclBridge.BasicTcl Dim plInterpreter As Long Dim psResult As String Set poTcl = New TclBridge.BasicTcl Call poTcl.CreateInterpreter(plInterpreter) Call poTcl.ClearResult(plInterpreter) psResult = vbNullString Call poTcl.GetResult(plInterpreter, psResult) MsgBox "The result = " & psResult, vbInformation, App.Title Call poTcl.DeleteInterpreter(plInterpreter) Set poTcl = Nothing End Sub |