Code: Select all
For B.b=1 To 9
For A.b=1 To 16
BlockImage(A,B)=#Canvas_Main+((B-1)*16)+A
Debug BlockImage(A,B)
Debug A
Debug B
Delay(600)
Next A
Next B
What I have figured out that may be helpful to a solution: The value of BlockImage starts at 79, increases consecutively to 126, jumps to -127 (Incidentally at the same time as B hits 4), and increases consecutively to -33. There are no crashes until I try to use one of the variable containing a negative value as a gadget number. I also realize that I probably used too many ()'s, as I usually do, but I do that because of not wanting to be screwed up for lack of them. Help would be greatly appreciated, as I can not continue until this is fixed, and I can't figure out what is wrong for the life of me.


