ALanguage()
ALANGUAGE() returns an array containing the elements of the FoxPro language. The elements can be commands, functions, base classes or database events. This command was added in VFP 7. Usage | nItems = ALANGUAGE( ArrayName, nItemType ) |
Parameter | Value | Meaning |
ArrayName | Name | The name of the array to populate with the language elements. |
NitemType | 1 | A one-dimensional array containing a list of commands. Example: "BROWSE" |
2 | A two-dimensional array. The first column contains the function list, and the second column contains a code denoting whether the command can be abbreviated ("M" if it must match), how many parameters are required, and how many in total are accepted (preceded by a hyphen). Examples: "CURSORTOXML", "M2-7" | |
3 | A one-dimensional array containing a list of FoxPro base classes. Example: "Spinner" | |
4 | A one-dimensional array containing a list of database events. The text in the list does not include the DBC_ prefix. Example: "AfterCloseTables" | |
Nitems | Numeric | Number of rows in the array. |
Example | nCommands = ALANGUAGE(aCommands, 1) DISPLAY MEMO LIKE aCommands * a list of 168 commands nFunctions = ALANGUAGE(aFunctions, 2) DISPLAY MEMO LIKE aFunctions * a two-dimensional array of the 424 functions, * with the codes in the second column nBaseClasses = ALANGUAGE(aBaseClasses, 3) DISPLAY MEMO LIKE aBaseClasses * a list of the 36 VFP base classes nDBEvents = ALANGUAGE(aDBEvents, 4) DISPLAY MEMO LIKE aDBEvents * a list of the 58 database events |
See Also | AMembers(), Array Manipulation, Database Events |
View Updates
Copyright © 2002 by Tamar E. Granor, Ted Roche, Doug Hennig, and Della Martin. All Rights Reserved.