Skip to content

Editing Properties

Each COM wrapper object that you instantiate in the Studio supports interfaces to two different sets of properties:

  1. Built-in Properties
  2. COM Properties

Built-in Properties

The built-in properties are internal properties defined by the DataFlex COM classes. The data for these properties is stored in the DataFlex wrapper object. These properties exist when the DataFlex object exists and cease to exist when the DataFlex object is destroyed. You can manipulate these properties in the visual designer's Object Properties dialog. In other words, these are regular DataFlex properties.

As with all DataFlex classes, you can find information on the wrapper object's built-in properties in the class reference manual.

COM Properties

COM properties do not belong to the DataFlex COM wrapper object. The COM wrapper object only defines access methods to read or write each COM property. The data is stored externally in the actual COM object.

COM properties are not documented in the Class Reference manual because they will be different for each COM component that you import. Usually, you would refer to specific documentation provided by the COM component's authors to learn how to use that object in your application.

The names of the access methods for the COM component's properties (and methods) are defined in the package file where the DataFlex wrapper class is defined.

You would initialize a COM Object's properties in the wrapper object's OnCreate event handler.

See Also