Adding a Record or Union to the Type Library
Go Up to Using the Type Library Editor
To add a record or union to a type library
- On the toolbar, click the record icon or the union icon. The selected type element is added to the object list pane.
- Type a name for the record or union. At this point, the new record or union contains no fields.
- 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.
- 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.