Common System Folders Foundation Class

Category System Utilities
Default Catalog Visual FoxPro Catalog\Foundation Classes\Utilities
Class _commonfolder
Base Class Custom
Class Library _system.vcx
Parent Class _custom
Sample ...\Samples\Solution\Ffc\Logo.scx

Remarks

This class gives you the location of common system windows such as the My Documents folder and the Application Data folder. These are commonly needed in applications that provide Windows 2000 Logo compliancy. See SHGetFolderPath in MSDN for more details.

To use, drop the class on a project or form or, from the Component Gallery Item Shortcut Menu, select Add to Project or Add to Form. When you add the class to a form, Visual FoxPro places the class icon on the form. You can specify the appropriate property values and provide any necessary input and output objects. When you drop the class on a project, you can choose between adding the class or creating a subclass.

See Guidelines for Using Visual FoxPro Foundation Classes for more information on using foundation classes.

Properties, Events, Methods Description
GetFolder method Returns path to specified system folder.

Syntax: GetFolder(nFolderID, lCreateNew)

Return: name of folder

Arguments:

nFolderID ID reference to the folder. Refer to the class method for common IDs as specified in SHGetFolderPath in MSDN.

lCreateNew specifies whether to create folder when one does not exist

See Also

Guidelines for Using Visual FoxPro Foundation Classes | Visual FoxPro Foundation Classes A-Z | Foundation Class Samples