joe_pool_is
Well-known member
I have an integer that is used to index an array. The array has 12 elements in it, so I want to access it with different loops (for, case, while, etc.).
Somehow, my program is setting this integer value to 12, which causes problems on a 0 to 11 array.
I cant find anyplace that sets the value to 12 in the code, either. Ive been stumped on this for a couple of days.
1. Is there a way I can limit the variables values to only 0 - 11?
2. Is there a way to set a flag so that as soon as this variable is assigned a value above 11, my debugger can stop program execution?
Somehow, my program is setting this integer value to 12, which causes problems on a 0 to 11 array.
I cant find anyplace that sets the value to 12 in the code, either. Ive been stumped on this for a couple of days.
1. Is there a way I can limit the variables values to only 0 - 11?
2. Is there a way to set a flag so that as soon as this variable is assigned a value above 11, my debugger can stop program execution?