I edited your post to change the second set of 'code' tags to 'quote' tags. the 'code' tags forced your errors to print on one line, making it much wider than the screen. 'quote' tags allow wrapping to the next line, making your post easier to read.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Is this to do with the range for the byte? (i.e. -128 to 127). I tried the above expecting that the application will produce an error if i try 128 but it didnt. The number changed to negative values. Could you please clarify this for me thanks. [ September 28, 2007: Message edited by: O. Ziggy ]