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
Set the main script function name.
Syntax
n = APP_SetEntryPoint(NewMainFunction)
Returns
Number.
%TRUE means function name was found and set as main script function name
Parameters
Name |
Type |
Optional |
Meaning |
NewMainFunction |
String or function |
Yes |
Function name can be indicated in 2 different ways: 1.an existing function name 2.a string expression representing the name of an existing function name
|
Remarks
thinBasic main script function is usually called TBMain. With APP_SetEntryPoint programmer can change this behave and indicate a different name as main function.
Restrictions
See also
Examples
'---To specify a function name, the following syntax are both valid
'---1. a direct name
APP_SetEntryPoint MyNewMain
'---2. a string expression valuating to a valid function name
APP_SetEntryPoint "My" & "New" & "Main"
'--------------------------------------------
Function MyNewMain() As Long
'--------------------------------------------
'--- do something
End Function