ADLLs()
This function was added in VFP 7 to provide an easy way to find out what API functions have been declared.
Usage |
nFunctionCount = ADLLS( aFunctionList ) |
Parameter |
Value |
Meaning |
aFunctionList |
Name |
An array to hold the list of declared API functions. |
nFunctionCount |
Number |
The number of API functions declared. |
Example |
* See whether a particular function was declared. * Grab the alias, if so, so we can use the function * without worrying what name it was declared with. LOCAL nDLLCount, aDLLList[1], nItem, cGSCAlias nDLLCount = ADLLS( aDLLList ) nItem = ASCAN( aDLLList, "GetSysColor", -1, -1, 1, 14) IF nItem = 0 * Declare it DECLARE INTEGER GetSysColor IN WIN32API INTEGER nElement cGSCAlias = "GetSysColor" ELSE * Grab the defined alias for the function cGSCAlias = aDLLList[ nItem, 2 ] ENDIF * Now run it cCommand = cGSCAlias + "(13)" nResult = EVALUATE(cCommand) WAIT WINDOW TRANSFORM(nResult) |
See Also |