Quote: "
dont forget, the first element of an array is 0 (zero). So dimming...
Dim a(5)
"
and, confessing to a problem that once kept me up late many nights in a row cussing at my computer
,
unless an update has changed this, there's no bounds checking in DBP, so if you try to assign values to a(6) or a(100), you'll get away with it, but you're overwriting memory allocated to God-knows-what-else.
If you're lucky, the program will crash at the spot where you did the assignment. If you're unlucky (like me), you'll be changing other variables without knowing it.
Anyway, if you dim SomeArray(100), make sure you don't try to stick stuff into SomeArray(101).