The Programmatic Identifier (known as ProgID) is the string you pass to CreateObject() or NewObject() to create a COM object. This property tells you what string to use for a particular COM object you're creating. The property is read-only.
Usage |
cMyServername = oServer.ProgID |
You cannot change this name directly. You can change the first half by modifying the server name using the Project's ServerProject property, and the second half by renaming the class library or program that defines the object.
Example |
* Ted's project for testing SYS(2335) was called SYS2335
* His test class was a program named Fred.PRG
? oProject.Servers[1].ProgID && "SYS2335.fred"
oDear = CREATEOBJECT("SYS2335.Fred") && creates the object |
See Also |
CreateObject(), NewObject(), Project, Server, ServerProject |