COMCLASSINFO( ) Function

See Also

Returns registry information about a COM object such as a Visual FoxPro automation server.

Syntax

COMCLASSINFO(oObject [, nInfoType])

Returns

Character

Arguments

oObject

An object reference to a COM or OLE object.

nInfoType

Specifies the type of information to return. The following table lists the values for nInfoType and the information returned.

nInfoType Information returned
1 (Default) The object's programmatic identifier (ProgID).
A ProgID is a registry entry that can be associated with a CLSID.
2 The object's VersionIndependentProgID.
The VersionIndependentProgID associates a ProgID with a CLSID. It is used to determine the latest version of an object application, refers to the application's class, and does not change from version to version.
3 The object's friendly name.
4 The object's class identifier (CLSID). A CLSID is a globally unique identifier that identifies a COM class object.

Remarks

COMCLASSINFO( ) returns the empty string if registry information isn’t available for the object you specify. Visual FoxPro automation servers are COM objects, both .exe executable files and .dll dynamic link libraries you can create in the Project Manager.