#COMPILE EXE "s44_local_static.exe"
' Sample: STATIC variable inside function
FUNCTION Counter() AS LONG
    STATIC count AS LONG
    INCR count
    FUNCTION = count
END FUNCTION
FUNCTION PBMAIN() AS LONG
    DIM i AS LONG
    PRINT "STATIC counter calls:"
    FOR i = 1 TO 5
        PRINT "Call"; i; ":"; Counter()
    NEXT i
    FUNCTION = 0
END FUNCTION
