MAIN
 
Syntax

MAIN:

Description

Normally an ARMbasic program will start at the first statement.  This can be changed by having a MAIN: somewhere else in the program.  When a MAIN: does exist, the program will begin at this point.
Example

SUB1:
PRINT "Hello from sub1"
RETURN

MAIN:
GOSUB SUB1
END

Differences from other BASICs

See also