18.12.2012 Views

Embedding R Tutorial

Embedding R Tutorial

Embedding R Tutorial

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Error Handling in VB.NET<br />

� use Try/Catch/Finally statements<br />

Dim lConnector As IStatConnector<br />

lConnector = New StatConnector<br />

Try<br />

lConnector.Init("R2") ' faulty statement<br />

Catch lExc As COMException<br />

MessageBox.Show("Error: " & _<br />

End Try<br />

lConnector.GetErrorText())

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

Saved successfully!

Ooh no, something went wrong!