ALANGUAGE( ) Function
Returns an array containing the names of all valid Visual FoxPro commands, functions, or base classes.
ALANGUAGE(ArrayName, nType)
Parameters
- ArrayName
Specifies the name of the array to contain the language items. If the array doesn't exist, Visual FoxPro automatically creates the array. If the array exists and isn't large enough to contain all the data, Visual FoxPro automatically increases the size of the array to accommodate the information. If the array is larger than necessary, Visual FoxPro truncates the array. - nType
Specifies the type of language item returned, according to the following list:Value Description Array Type 1 Commands One-dimensional:
Command name2 Functions - Two-dimensional:
Function name [M] nParamR [- nParamT]
The matchFlag, M, specifies that you must use the full
function name in code.
nParamR specifies the number of required parameters. nParamT specifies total number of possible parameters.
3 Base classes - One-dimensional:
- Base Class name
4 DBC Events - One-dimensional:
- DBC event name (The displayed name omits the "DBC_" prefix of the event name.)
Remarks
The ALANGUAGE( ) function returns an array of all valid Visual FoxPro commands and functions. To return object information, use the AMEMBERS( ) function.
Examples
Use the ALANGUAGE( ) function to access Visual FoxPro functions as in the following code:
ALANGUAGE(FuncArr,2)
The resulting array, FuncArr, will contain the following values:
JUSTSTEM, M1
JUSTSTEM( ) cannot be abbreviated and it requires one parameter.
KEYMATCH, 1-4
KEYMATCH( ) can be abbreviated to four characters, and has one required, and three optional parameters (total = 4).
LASTKEY, 0
LASTKEY( ) can be abbreviated and requires no parameters.
See Also
Command and Function Usage | LASTKEY( ) Function | KEYMATCH( ) Function | JUSTSTEM( ) Function