hi all, could someone tell me why:
VB Code:
  1. Dim x As Integer, a As Byte, b As Byte
  2. a = 0
  3. b = 1
  4. x = a - b
generates an overflow error on last line, while:
VB Code:
  1. Dim x As Integer, a As Byte, b As Byte
  2. a = 0
  3. b = 1
  4. x = a + b
does not. i have to modify first operation into:
VB Code:
  1. Dim x As Integer, a As Byte, b As Byte
  2. a = 0
  3. b = 1
  4. x = a * 1 - b * 1
to make it work. this is really weird.

thanks,

wc.