Please enable JavaScript to view this site.

thinBasic Help Manual

* * HELP & MANUAL PREMIUM PACK 4 DEMO VERSION * *

This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.

This version is copyright and may only be used for local testing purposes. It may not be distributed.

Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.

 

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. Use one of the following equates

%Function_All = all functions

%Function_User = user defined functions (functions written inside the script

%Function_External = external functions declared with DECLARE statement

%Function_TypeMethod = functions defined as type methods.

 

Remarks

 

Restrictions

 

See also

 

Examples

 

String fList() 

Long   nFun

  

nFun = Function_List(fList, %FUNCTION_ALL)

  

MsgBox 0, "In current script there are " & nFun & " functions:" + $CRLF + Join$(fList, $CRLF)

 

Function SomeFunction() As Long

  Return 1

End Function

 

Function SomeOtherFunction() As Long

  Return 2

End Function

Created with Help+Manual 8 and styled with Premium Pack Version 4 © by EC Software