Creating Objects / Registering Components


The main unit in VC/m is an object version. This is a logical grouping of one or more components at a specific stage of development. As such, creating an object and registering a component to the VC/m environment are essentially the same process.

Note: While it is possible to create an empty object by choosing File -> New from the menu bar while you are in an object view of a location, the methods listed below constitute the normal procedures for object creation.

Register a Single Component to an Object


1. Open the 'components' view of the location where the new component is physically present. Unregistered components are shown in the main panel with a red icon, provided the red filter button is selected.

2. Select the component and transfer it to the 'to location'

  • EITHER right-click on the selected component and choose 'Register...'
  • OR use 'Register Component...' from the Edit menu on the menubar

3. Enter the transfer details into the transfer dialog. For more information, see the section on the Component Transfer Dialog in the article about the transfer dialog.

4. Click 'OK'.

A component can also be registered to an object directly through Caché Studio. Once you have saved your new component in Studio, select Source Control -> Add to Source Control from the menu bar. Then follow Steps 3 & 4 above.

Register Multiple Components to a Single Object


In some instances, it is useful to register more than one component to a single object. A typical example of this would be keeping the .frm and .frx file-pair together in a single object in Visual Basic development.

1. Register one of your components to a new object by following the instruction listed above, under 'Register a Single Component to an Object'.

2. Add the rest of the components to the object by following the instructions for adding components to an object.


See Also: Components, Object Versions, Transfers, Initiating a Transfer, The Transfer Dialog, Adding Components to Objects