Server
Server is an object exposed within the Project object, to allow us to view and manipulate all of the server information within the project programmatically.
Property |
Value |
Purpose |
CLSID |
Character |
The COM unique identifier used to access your server from other applications. |
Character |
The description of the server, as entered on the Servers page of the Project Info dialog. |
|
Integer |
The topic in the associated help file to be invoked from this object. |
|
Numeric |
Determines whether the class can be instantiated and, if so, whether the same server can serve multiple applications. |
|
Character |
The name of the class as it would be used in CreateObject(). |
|
Character |
Returns the class name of the server. |
|
Character |
The Class Library where the class is defined. Returns the PRG name if the class is defined in code, or the VCX name if it was defined visually. |
Example |
MODIFY PROJECT MySample NOWAIT oProject = _VFP.ActiveProject ? oProject.Servers.Count && Displays the # of servers available FOR EACH oServer in oProject.Servers ? oServer.CLSID && Displays the Class ID for each NEXT |
See Also |
CLSID, Description, HelpContextID, Instancing, ProgID, Project, ServerClass, ServerClassLibrary, Servers |