Creates an array containing information about files with Windows version resources such as .exe, .dll, and .fll files, or automation servers created in Visual FoxPro.
|For a Visual FoxPro automation server to have Windows version resources, you must specify a value for at least one item in the EXE Version dialog box. For more information, see EXE Version Dialog Box.|
Specifies the name of the array in which the file information is placed. If the array you specify doesn't exist, Visual FoxPro automatically creates the array. If the array exists and isn't large enough to contain the file information, Visual FoxPro automatically increases the size of the array. If the array is larger than necessary, Visual FoxPro truncates the array.
The following table lists the contents of each element of the array.
Original File Name
The format of this value is dependent on the version of Visual FoxPro. For details, see VERSION( ) Function.
OLE Self Registration (contains "OLESelfRegister" if the file supports self-registration; otherwise contains the empty string)
Language (derived from the Translation Code)
For example, you can use the following code to determine the Locale ID for the Visual FoxPro executable file:
В Copy Code
DIMENSION aFiles AGETFILEVERSION(aFiles,"VFP9.EXE") ? EVAL("0x"+LEFT(aFiles,4)) ** Returns 1033 for US version
- Specifies the name, and optionally the path, of the target file.
Numeric. AGETFILEVERSION( ) returns the number of elements in the array. If the file you specify does not exist or does not contain Windows version resources, AGETFILEVERSION( ) returns zero, and the array, if already created, remains unchanged.
AGETFILEVERSION(В ) can be abbreviated to a minimum number of 5 characters.