File Version

See Also

Category File Utilities
Default Catalog Visual FoxPro Catalog\Foundation Classes\Utilities
Class _fileversion
Base Class Custom
Class Library _utility.vcx
Parent Class _custom
Sample ...\Samples\Vfp98\Solution\WinAPI\getver.scx

Remarks

Retrieves information from the version resource of a file and stores it in an array.

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
cFileName property The name of the target file.
Default: ""
aVersion[12,0] property Array containing the file version information.
Default: .F.
GetVersion method Retrieves version information for cFileName.
Syntax: GetVersion( )
Return: none
Arguments: none
DisplayVersion method Displays the version information for cFileName.
Syntax: DisplayVersion( )
Return: none
Arguments: none