Navigation: thinBasic language > Script structure > Functions/Subs > FUNCTION_List |
|
Description
Returns the number of functions found in current script.
StringArray variable with the names of the functions.
Syntax
NumberOfFunctions = FUNCTION_List(StringArray [, FunctionsType])
Returns
Numeric.
The number of functions found.
Parameters
Name |
Type |
Optional |
Meaning |
StringArray |
Variable |
No |
A string array that will be filled with the name of the found functions. If no functions will be found thsi array will be dimensioned to 1 in any case but returned value will be zero. |
FunctionsType |
Number |
Yes |
Type of functions to be returned. 0 = all functions 1 = user defined functions (functions written inside the script 2 = external functions declared with DECLARE statement |
Remarks
Restrictions
See also
Examples
Dim fList() As String
Dim nFun As Long
nFun = Function_List(fList, 0)
MSGBOX 0, "In current script there are " & nFun & " functions".
© 2004-2008 thinBasic. All rights reserved. | Version 1.7.0.0 | Web Site: http://www.thinbasic.com |