Mirage Source http://www.miragesource.net/forums/ |
|
VB6 Byte question http://www.miragesource.net/forums/viewtopic.php?f=201&t=4893 |
Page 1 of 1 |
Author: | VersionX [ Sun Dec 28, 2008 11:59 pm ] |
Post subject: | VB6 Byte question |
Whats the maximum value of a VB6 Byte? Looking at MSDN Documentation, I'm thinking it would be 255. Want to save myself some debugging and ask before I code... thanks = ) |
Author: | Labmonkey [ Mon Dec 29, 2008 12:17 am ] |
Post subject: | Re: VB6 Byte question |
If you know the answer why did you ask lol? Its 255. Bytes are always 0-255 in all languages. |
Author: | Tony [ Mon Dec 29, 2008 12:33 am ] |
Post subject: | Re: VB6 Byte question |
You could've just made a byte = 256 and see if you get an error. Simple. |
Author: | Matt [ Mon Dec 29, 2008 1:22 am ] |
Post subject: | Re: VB6 Byte question |
Or believe the MSDN. They made it? |
Author: | Lea [ Mon Dec 29, 2008 2:54 am ] |
Post subject: | Re: VB6 Byte question |
signed byte is -128 to 127 unsigned byte is 0-255 |
Author: | Nean [ Mon Dec 29, 2008 9:05 pm ] |
Post subject: | Re: VB6 Byte question |
What's the difference between a signed byte and an unsigned byte? Damn... and I had thought I had this shit, down and then Lea comes and brings more confusion. Thanks :\ xD |
Author: | Lea [ Mon Dec 29, 2008 11:48 pm ] |
Post subject: | Re: VB6 Byte question |
http://en.wikipedia.org/wiki/Two%27s_complement I don't think VB has signed bytes, though. C/Java and such have both signed and unsigned chars, though. |
Page 1 of 1 | All times are UTC |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |