[...] Array[j] := Progr; j+=1; UNTIL Book.NEXT = 0;and then I select the values I want.
FOR k:=1 TO j-1 DO IF Array[j+1] - Array[j] <> 1 THEN counter += 1;I tried to change the index but I always get the error "index out of range"... heeelpppp meee!! Thanks!
IF Array[j+1] - Array[j] <> 1 THENcan you change this into
IF Array[k+1] - Array[k] <> 1 THEN
Answers
The code is a bit reduced, but if I look at your code it says can you change this into
I hope this helps.
but I always get the error....
ok, solved.... I've initialized the counter in a wrong way! Thank you!