COMClassInfo()
This function returns information on OLE or COM classes. Usage | cRetVal = COMClassInfo( oObject [ , nInfoType ] ) |
Parameter | Value | Meaning |
oObject | Object | The object to report on. |
nInfoType | Omitted or 1 | Return the object's ProgID. |
2 | Return the object's VersionIndependentProgID. | |
3 | Return the object's friendly name. | |
4 | Return the object's CLSID. | |
5 | Return the type of object, as follows: 1—Native VFP object | |
cRetVal | Character | The value requested above. |
Empty string | The object specified was not a COM or OLE object. |
Example | oGraph = CREATEOBJECT("MSGraph.Application") * Determine which version is installed: ? COMClassInfo(oGraph,1) && "MSGraph.Application.8" * Grab the friendly name, perhaps to use as a caption. lcCaption = COMClassInfo(oGraph,3) ? lcCaption && "Microsoft Graph 2000 Application" |
See Also | VarType() |
View Updates
Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.