Example: Determining whether an element is a text file

' Connect to the top-level Rational ClearCase application object
Dim CC As New ClearCase.Application
Dim Elem As CCElement
Set Elem = CC.Element("m:\carol_main\caroltest\testelem.c")
MsgBox Elem.ElementType ' will be "text_file" for text files

Feedback