CTOD()

ServerClass, ServerClassLibrary

These properties tell you the lineage of the server you're examining within the Project object.

Usage

cServerClass = oServer.ServerClass cSCLibrary = oServer.ServerClassLibrary
These two properties of the Server object, which is available through the Project hierarchy, tell you the class definition and the library location of a class defined as OLEPublic. If the class definition is in code, the class name is the name supplied in DEFINE CLASS and the class library is the fully qualified name of the program where the definition resides. In the more common case of a visual class, the ServerClass is the class' Name and the ServerClassLibrary is the fully pathed name of the VCX.

Example

* Created a test class "fred" in the SYS2335 program ? oProj.servers.item[1].ServerClass         && "fred" ? oProj.servers.item[1].ServerClassLibrary * Returns "C:\test\sys2335.prg"

See Also

Project, Server


View Updates

Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.



Hacker's Guide to Visual FoxPro 7. 0
Hackers Guide to Visual FoxPro 7.0
ISBN: 1930919220
EAN: 2147483647
Year: 2001
Pages: 899

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net