Quote Originally Posted by mackrackit View Post
if tmp >= 500 then
Will never be as tmp is BYTE size
Very good, a byte can count from 0 to 255.

That could give unpredictable results (except for the gurus that can most likely figure exactly how it will go screwy ); it may work, it may not.