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.
Structure of a script file
A script is a text file containing thinBasic code.
Inside a script all the code not included into a user defined function is considered main code and executed when script is executed.
All the lines not included into a user defined function are considered Main Code.
Default main function
thinBasic also implements a main function logic. If script contains a function called TBMain and during the script execution TBMain was not called by direct invocation, thinBasic will execute TBMain automatically.
TBMain is like the "main" function in C programming language.