System.Win.ComObj.TComObjectFactory.ShowErrors

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property ShowErrors: Boolean read FShowErrors write FShowErrors;

C++

__property bool ShowErrors = {read=FShowErrors, write=FShowErrors, nodefault};

Properties

Type Visibility Source Unit Parent
property public
System.Win.ComObj.pas
System.Win.ComObj.hpp
System.Win.ComObj TComObjectFactory

Description

Indicates whether the COM object factory displays a message box when exceptions are raised.

When ShowErrors is true, exceptions that are raised when trying to create a COM object are caught and a message box appears to describe the error. When ShowErrors is false, the exception is not caught by the COM object factory.