' #DIM ALL variable enforcement test
#COMPILE EXE
#DIM ALL

FUNCTION PBMAIN() AS LONG
    LOCAL counter AS LONG
    LOCAL name AS STRING
    LOCAL rate AS DOUBLE
    LOCAL flag AS LONG

    counter = 0
    name = "DIM ALL test"
    rate = 9.99
    flag = 1

    PRINT "counter:"; counter
    PRINT "name:"; name
    PRINT "rate:"; rate
    PRINT "flag:"; flag

    counter = counter + 1
    PRINT "counter after increment:"; counter

    PRINT "#DIM ALL enforcement test complete."

    FUNCTION = 0
END FUNCTION
