Entertaining! If we DIM a variable, it gets allocated somewhere in memory. If basic encounters a new variable later, it gets to move all the variables around to allocate the new one. So, make sure you reference all variables early in the program, even if all you do is set them to zero. Then, the DIMed variable *should* stay put. I would have said *will* stay, however, you have found new ways to stretch the bounds!
@allenhuffman3 жыл бұрын
Indeed. My lesson learned is that other things can shift variables, not just making a new a variable.
@acs8-bitzone6513 жыл бұрын
I wonder if knew more about how the header of the array is constructed, we could see what exactly gets changed in the header and why the index 0 location disappeared.