Application Registry Foundation Class
Category | System Utilities |
---|---|
Default Catalog | Visual FoxPro Catalog\Foundation Classes\Utilities |
Class | _filereg |
Base Class | Custom |
Class Library | _registry.vcx |
Parent Class | registry |
Sample | ...\Samples\Solution\WinAPI\regfile.scx |
Remarks
This class provides a set of registry functions that return application-specific information such as version and location.
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 on the form. You can then specify the appropriate 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 |
---|---|
GetAppPath method | Checks and returns path of the application associated with a particular extension. Syntax: GetAppPath(cExtension, cExtnKey, cAppKey, lServer) Return: GetApplication(cExtnKey, @cAppKey, lServer) Arguments: cExtension Specifies the extension of the application. cExtnKey Specifies the registry key of the application. cAppKey Specifies the application path. lServer Specifies whether the extension is a server application. |
GetLatestVersion method | Returns latest version for a specified application. Syntax: Getlatestversion(cClass, cExtnKey, cAppKey, lServer) Return:cExtnKey, @cAppKey, lServer Arguments: cClass Specifies the class key of the application. cExtension Specifies the extension of the application. cExtnKey Specifies the registry key of the application. cAppKey Specifies the application path. lServer Specifies whether the this is a server application. |
GetApplication method | Retrieves the application key. Syntax: Getapplication(cExtnKey, cAppKey, lServer) Return:@cAppKey Arguments: cExtension Specifies the extension of the application. cExtnKey Specifies the registry key of the application. cAppKey Specifies the application path. lServer Specifies whether the extension is not a full application. |
See Also
Guidelines for Using Visual FoxPro Foundation Classes | Visual FoxPro Foundation Classes A-Z | Foundation Class Samples