TypeLibCLSID, TypeLibDesc, TypeLibName
These three properties of the Project object describe the Type Library, created to describe COM components.
Usage |
cClassID = prjProject.TypeLibCLSID cDescription = prjProject.TypeLibDesc prjProject.TypeLibDesc = cDescription cName = prjProject.TypeLibName |
Parameter |
Value |
Meaning |
cClassID |
Character |
The ClassID of the type library. This is the 16-byte unique ID for this class, represented in hexadecimal, with curly braces and hyphens added for better (but not much!) readability. |
cDescription |
Character |
The description of the servers in the type library. Set this on the Servers tab of the Project Info dialog, or programmatically via this property. |
cName |
Character |
The name of the type library, without the TLB or VBR extension. Typically, the name of the project. |
Trying to set the description to more than 126 characters programmatically causes problems. If you set TypeLibDesc to 127 characters or more, you get back an empty string on testing the value from the Project. But look in the Project Info dialog and the value is there. Somewhere beyond that, the value stops sticking and even the dialog is blank. |
Example |
? oProject.TypeLibCLSID ? oProject.TypeLibName oProject.TypeLibDesc = "My servers for testing" |
See Also |