ALANGUAGE( ) Function

JavaScript Editor js editor     Web development 



Main Page

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 name

2

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:

В Copy Code
   ALANGUAGE(FuncArr,2)

The resulting array, FuncArr, will contain the following values:

В Copy Code
   JUSTSTEM, M1

JUSTSTEM(В ) cannot be abbreviated and it requires one parameter.

В Copy Code
   KEYMATCH, 1-4

KEYMATCH(В ) can be abbreviated to four characters, and has one required, and three optional parameters (total = 4).

В Copy Code
   LASTKEY, 0

LASTKEY(В ) can be abbreviated and requires no parameters.

See Also



JavaScript Editor js editor     Web development