COMException

From Xojo Documentation

Revision as of 20:34, 2 December 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Class (inherits from RuntimeException)

A COM exception occurred. This exception is raised by classes generated through the IDE's Insert->ActiveX Component feature.

Properties
ErrorNumber Message
Methods
Stack StackFrames

Notes

When attempting to catch this exception in code, you must use the fully qualified name COM.COMException:

Try
Var wordApp As New Word.Application
wordApp.Help(255) // Non-existent help topic should throw an exception
Catch err As COM.COMException
MessageBox("That help topic does not exist.")
End Try