just install the latest patch when you re-install
basic arrays run from 0 to the specified value ie:
dim a(5)
gives you slots
[0] [1] [2] [3] [4] [5]
(six slots), this is unlike C/C++ which would give you five slots
[0] [1] [2] [3] [4]
unlike C/C++ you don`t need to specify the variable size or jump 4 bytes for every dword, each index is a complete variable (they may have changed this in C/C++...it`s been a while since I used it)
ATM you just need to use print or text to display variables onscreen during the program run, the debugger is waltz (working at less than zero
), so you can forget that for the moment, I don`t get why you keep getting array out of bounds errors, this should work fine
dim a(40)
for i=0 to 40
a(i)=rnd(500)
next i
for i=0 to 40
print a(i)
next i
wait key
try cutting and pasting that into the editor, if that fails to run then maybe you have some system issue or something, in that case contact TGM and tell them all you can about the problem.
Mentor.
PS; it may be that you are running the code outside the intended folder or something, or maybe that you have not rebooted since you re-installed (some people are on all the time I understand)
PC1: P4 3ghz, 1gig mem, 3x160gig hd`s, Radeon 9800pro w cooler (3rd gfx card), 6 way speakers.
PC2: AMD 2ghz, 512mb ram, FX5200 ultra, 16 bit SB.
Mini ATX cases suck.