以下のコードはVariable is undefined (500)
、エコーで error.no を連結しようとするとエラーになります。
'Raise an error to represent an issue with the main code
err.raise 999
dim error
set error = err
'Call another function that could also throw an error
SendMail "To=me","From=me","Subject=Failure in main code"
'Report both errors
wscript.echo "First problem was - Error code:" & error & vbcrlf & "Subsequent problem was - Error code:" & err
err オブジェクトのクローンを作成することは可能ですか?