|
GetErrorLine Method
|
|
|
Applies To
|
BasicTcl Object, AdvancedTcl Object
|
|
Prototype
|
GetErrorLine(Interpreter As Long, ErrorLine As Long) As Long
|
|
Input
|
The "Interpreter" parameter, which must be a valid interpreter pointer.
|
|
Output
|
The "ErrorLine" parameter which receives the current error line number for the specified interpreter.
|
|
Returns
|
Undefined.
|
|
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 grabs the error line number directly from the Tcl_Interp structure.
|
|
Notes
|
None.
|
|
Example
|
Private Sub Command1_Click()
Dim poTcl As TclBridge.BasicTcl Dim plInterpreter As Long Dim plErrorLine As Long Set poTcl = New TclBridge.BasicTcl Call poTcl.CreateInterpreter(plInterpreter) Call poTcl.SetErrorLine(plInterpreter, 1234&) Call poTcl.GetErrorLine(plInterpreter, plErrorLine) MsgBox "The error line = " & plErrorLine, vbInformation, App.Title Call poTcl.DeleteInterpreter(plInterpreter) Set poTcl = Nothing End Sub |