Adding a Record or Union to the Type Library

From RAD Studio
Jump to: navigation, search

Go Up to Using the Type Library Editor


To add a record or union to a type library

  1. On the toolbar, click the record icon or the union icon. The selected type element is added to the object list pane.
  2. Type a name for the record or union. At this point, the new record or union contains no fields.
  3. With the record or union selected in the object list pane, click the field icon in the toolbar. Specify the field's name and type, using the Attributes page.
  4. Repeat step 3 for as many fields as you need.

Once you have defined the record or union, the new type is available for use by the type library or any other type library that references it from its uses page. For example, you can use the record or union as the type for a property or parameter.

See Also