It was in the archive !by Lisztfr (no login)
How to map
by qbguy (no login)
index = (index + offset) - 5 * INT((index + offset) / 5)
This works the same way as index = ((index + offset) mod 5) except that it works if offset is negative.
Posted on Jan 6, 2009, 3:34 PM