IsInterpreterDeleted Method
Applies To
BasicTcl Object, AdvancedTcl Object
Prototype
IsInterpreterDeleted(Interpreter As Long) As Long
Input
The "Interpreter" parameter, which must be a valid interpreter pointer.
Output
None.
Returns
Non-zero if the interpreter contained in the "Interpreter" parameter is deleted, zero otherwise.
COM Results
S_OK: Success.
E_INVALIDARG: Either a NULL pointer was passed or the "Interpreter" parameter is invalid.
Side Effects
None.
Description
This method is a wrapper around the Tcl_InterpDeleted function. The interpreter contained in the "Interpreter" parameter is checked to see if it is deleted.
Notes
None.
Example
Private Sub Command1_Click()
    Dim poTcl As TclBridge.BasicTcl
    Dim plInterpreter As Long

    Set poTcl = New TclBridge.BasicTcl

    Call poTcl.CreateInterpreter(plInterpreter)

    MsgBox "Interpreter is deleted = " & poTcl.IsInterpreterDeleted(plInterpreter), vbInformation, App.Title

    Call poTcl.DeleteInterpreter(plInterpreter)

    MsgBox "Interpreter is deleted = " & poTcl.IsInterpreterDeleted(plInterpreter), vbInformation, App.Title

    Set poTcl = Nothing
End Sub