' Array Size Macro — simple array element counting
#COMPILE EXE
#DIM ALL

FUNCTION PBMAIN() AS LONG
    LOCAL arr(10) AS LONG
    LOCAL i AS LONG
    FOR i = 0 TO 10
        arr(i) = i * 10
    NEXT i
    PRINT "Array has 11 elements (0..10)"
    PRINT "arr(5) = " + STR$(arr(5))
    PRINT "Done."
    FUNCTION = 0
END FUNCTION
