From Xojo Documentation

Revision as of 20:34, 2 December 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Class (inherits from RuntimeException)

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

ErrorNumber Message
Stack StackFrames


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

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