If you use BYTE, remember that the math is unsigned. ... DIM b AS BYTE b = 0 DEC b 'b is 255 and not -1 .... b = 127 INC b 'b is 128 and not -128 ... b = 255 INC b 'b is 0 .... -Fernando