The quick answer (for others that he might need) is to define this function: Rosetta Code :
sub Assert( boolExpr, strOnFail ) if not boolExpr then Err.Raise vbObjectError + 99999, , strOnFail end if end sub
Vocation:
Set obj2 = Nothing Assert Not obj2 Is Nothing, "obj2 is Nothing!"
Conclusion:
someScript.vbs(17, 3) (null): obj2 is Nothing!
source share