|
-
January 19th, 2007, 05:26 PM
#1
Exception on arithmetic operation
Why does this bit of code throw an exception?
dim dataBytes(5) as byte
dataBytes(0)=&H4A
dataBytes(1)=&H1
dataBytes(2)=&H1
dataBytes(3)=&H2A
dataBytes(4)=(dataBytes(1)+dataBytes(2)+dataBytes(3))^&HFF
The final statement is what generates the exception. The exception states that an arithmetic operation resulted in an overflow.
Thanks!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|