[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 156
  • Last Modified:

Looping a byte from 0 To 255 gives Owerflow error

Hi!

    Dim x As Byte
    For x = 0 To 255
        Debug.Print x
    Next x

Why does this raise an error?
0
dbrckovi
Asked:
dbrckovi
1 Solution
 
Sys_ProgCommented:
I am not aware much of VB
But BYTE would be able to store 1 byte of data
i.e.
the range of values would be

-128 to 127

Thus, u have exceeded the limit

Amit
0
 
zzzzzoocCommented:
Answered it in your other question when you mentioned it.. :)

http://www.experts-exchange.com/Programming/Programming_Languages/Visual_Basic/Q_20947594.html
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now