I just ran into this issue stepping over image data in RAM. I'm not sure why _OFFSET variables can't be used as regular integers in FOR loops, but they can't. Seems convoluted, but oh well.
In your case, set your ss variable to an integer type, such as LONG. _OFFSET, it seems, is only used to return an offset and doesn't support actually changing the offset value. Sort of a read only variable type?