Hi,
I am trying to use the penultimate entry in a REPEAT...UNTIL loop.
I am trying to use the following, however it is not working, it is not entering the code part.
I := record.COUNT.
REPEAT
IF (I = (I-1)) THEN BEGIN
...
.... code
END
UNTIL record.NEXT = 0;
How can I enter the code part if it is the penultimate entry?
Thanks
0
Comments
You could do the following to get the second last:
Object Manager
Instead of counter++ or counter += 5 you can do NEXT, NEXT(1), NEXT(-1), or NEXT(variable). If you pass it an integer it will jump that many records.