Examples
The following sections have lists of examples that are provided for using the CAL interfaces:
- Visual Basic examples
- Working with metadata
- Working with VOB file system objects
- UCM examples
- Other examples
- Perl examples
- Visual C++ examples
Note: Many of these examples do not include code for error-checking. However,
in real applications, it is important to check for errors.
Visual Basic examples
Working with metadata
- Changing the value of an attribute
- Creating, applying, and removing an attribute type
- Displaying information about all attribute types in a VOB
- Displaying information about all branches sprouting from a version
- Applying a branch type to a version
- Displaying information about all of the hyperlinks attached to a VOB object
- Getting a hyperlink type and creating a hyperlink of that type
- Moving a label from a version to its predecessor
- Working with trigger types and a trigger type builder
- Working with triggers
- Using the empty collection properties to create your own collections
Working with VOB file system objects
- Querying for checked-out files
- Working with checked-out files
- Determining if a file is checked-out to a particular view
- Iterating a directory using VBScript
- Working with elements
- Determining if an element is a text file
- Determining if a file is under source control
- Accessing properties of VOB file system objects
UCM examples
Other examples
- Displaying the history for a VOB object
- Working with locks
- Accessing view properties
- Accessing VOB properties
- Issuing a cleartool command