A script consists of a at least one public class with at least one public function. This function needs to be marked with the attribute [Start].
The following example shows a very simple script.
In this example the class "VerySimpleScript" with a function "MyFunction" was created. The function was marked by the attribute "[Start]".
When this script is run, using the menu point "Scripts>Run..." the function "MyFunction" and a message box appears:
A script may contain more than one function. There even can be several classes in a script. However there only may be exactly one function marked by the "[Start]" attribute!