Error 538 - Invalid FOR/NEXT limits

Invalid FOR/NEXT limits - The specified start, stop and/or increment value(s) for a FOR/NEXT loop are not within the allowable range for the class of counter variable used.  For example, you attempted to specify an increment value of -1 (a signed value) when the loop counter uses an unsigned variable. This error is also generated if the compiler is able to determine, at compile time, that the start and stop values chosen will prevent the FOR/NEXT from ever executing, e.g., FOR x = 10 TO 1.