10.07.2012, 11:43
Your table has 6 territories with Keys 1,2,3,4,5,6
Your array has 6 slots, 0,1,2,3,4,5
Then, when you retrieve the sixth territory, the array is out of bounds.
You should use X = strval( terField ) - 1; instead of X = strval( terField );
Your array has 6 slots, 0,1,2,3,4,5
Then, when you retrieve the sixth territory, the array is out of bounds.
You should use X = strval( terField ) - 1; instead of X = strval( terField );