18.12.2012 Views

Embedding R Tutorial

Embedding R Tutorial

Embedding R Tutorial

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Error Handling in VB6 (2/2)<br />

� use "On Error Resume Next" statement<br />

...<br />

On Error Resume Next ' disable error handler<br />

r.SetSymol "a", 25<br />

If Err.Number 0 Then<br />

' Error handling code<br />

End If<br />

...<br />

On Error Goto 0 ' restore default<br />

� Err.Number contains error code (HRESULT)<br />

� call GetErrorText for a textual description

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!