' REDIM PRESERVE - array resizing
#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
    NEXT i
    PRINT "arr(5)=" + STR$(arr(5))
    PRINT "Done."
    FUNCTION = 0
END FUNCTION
