Results 1 to 6 of 6

Thread: one stupid question

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 1999
    Location
    Vilnius, Lithuania
    Posts
    50

    Post

    ok now here is my problem

    i have the program which works with numbers
    and then i work with quite big numbers vb gives me:

    run-time error '6':

    overflow

    what a hell is that?
    is there any way to corect that?
    how?(if there is)
    why sky is blue?

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    Post

    Try declaring your variables as long.
    Dim intMyNumber as Long

    the sky is blue because it reflects the ocean!
    Wayne

  3. #3
    Member
    Join Date
    Jan 1999
    Location
    Garden Grove, CA, Orange
    Posts
    55

    Post

    Change ur variable data type, so that it can hold bigger number.

    Check out this early post.

    http://www.vb-world.net/ubb/Forum1/HTML/012219.html

    order of storage size :
    Byte<Integer<Long<Single<Double

    Why ocean is blue?
    Joon


  4. #4

    Thread Starter
    Member
    Join Date
    Dec 1999
    Location
    Vilnius, Lithuania
    Posts
    50

    Post

    Thanx

    -casparas

  5. #5
    New Member
    Join Date
    Dec 1999
    Location
    Nederland, Texas, USA
    Posts
    8

    Post

    Number size is limited to the data type you use, ine xample, integers max = 2032 or somewehre around that

    The reason the sky is blue is due to the shemicla, soxygen carbod dioxide, nitrogen passing throught the sun....or at least thats what i think

  6. #6
    Junior Member
    Join Date
    Nov 1999
    Posts
    23

    Post

    The ocean is blue for the same reason that the sky is blue. The blue of the ocean is caused by scattering of sunlight by tiny particles suspended in the water. Blue light, being of short wave length, is scattered more effectively than light of longer wave lengths.

    *copy and pasted from the web!

    [This message has been edited by MR (edited 12-30-1999).]

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width