10-19-2007, 07:25 AM
Although ExecuteStatement etc does not throw error, but it sets Error.Number to a nonzero value. Change two last lines to:
In PerlExec:
In PerlEval:
In PerlAddCode:
In PerlFunc:
In PerlExec:
_PerlScript.ExecuteStatement(statement); err end _error
if(_PerlScript.Error.Number) end VbsError(_PerlScript)
In PerlEval:
VARIANT v=_PerlScript.Eval(expression); err end _error
if(_PerlScript.Error.Number) end VbsError(_PerlScript)
ret v
In PerlAddCode:
_PerlScript.AddCode(code); err end _error
if(_PerlScript.Error.Number) end VbsError(_PerlScript)
In PerlFunc: