Class

FileClass, FileClassLibrary

These properties indicate the name of the class on which a form is based and the class library containing that class. They apply to File objects.

Usage

cClass = filFile.FileClass cClassLib = filFile.FileClassLibrary
Forms contain information about their class and class library in the Class and ClassLibrary properties. (Big surprise.) But that information is available only when the form is open. When you're working on a project and want to know the provenance of its forms, use FileClass and FileClassLibrary. (Seems to us this is most useful for documentation tools.)

These properties contain the empty string for files other than screens.

Example

FOR EACH oFile IN oProj.Files    IF NOT EMPTY(oFile.FileClass)       ?oFile.Name + " is based on class: " + oFile.FileClass + ;        " from classlib: " + oFile.FileClassLibrary    ENDIF ENDFOR

See Also

Class, ClassLibrary, File, Files, Project


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