Results 1 to 6 of 6

Thread: Overflow

  1. #1

    Thread Starter
    Fanatic Member Alien_poo's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    668

    Overflow

    Temps = Val(TxtDistance.Text) \ C

    why the **** is this giving me an overflow? I have 'temps' declared as a double... and C is equal to 3 * 10 ^ 8... and i'm putting 1.44x10^11 in the textbox...
    "A RESPECTED scientist has put forward the stunning - if unsavoury - possibility that humans are descended from sewage dumped overboard by aliens."
    "First we read that we are the creation of God, then scientists say we are descended from apes. Now they say we're some sort of alien poo. How much further can we sink?"
    - Robert Matthews, Science Correspondent

  2. #2

  3. #3

    Thread Starter
    Fanatic Member Alien_poo's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    668
    hmmm.. anyway to fix that? and even then... why is it giving me an overflow?
    "A RESPECTED scientist has put forward the stunning - if unsavoury - possibility that humans are descended from sewage dumped overboard by aliens."
    "First we read that we are the creation of God, then scientists say we are descended from apes. Now they say we're some sort of alien poo. How much further can we sink?"
    - Robert Matthews, Science Correspondent

  4. #4

  5. #5

    Thread Starter
    Fanatic Member Alien_poo's Avatar
    Join Date
    Jan 2002
    Location
    Canada
    Posts
    668
    ok thanks... btw i was getting overflow error because I put "\" instead of "/"

    oh and another question... I have 2 optbuttons on my form, when I load the form, one of them is always clicked by default. So I put their values to false in form activate, but then I created a menu, and when you click on "credits" in that menu, a msgbox pops up, when you click ok on that msgbox, an optbutton is automatically clicked by default... how can I stop that?
    "A RESPECTED scientist has put forward the stunning - if unsavoury - possibility that humans are descended from sewage dumped overboard by aliens."
    "First we read that we are the creation of God, then scientists say we are descended from apes. Now they say we're some sort of alien poo. How much further can we sink?"
    - Robert Matthews, Science Correspondent

  6. #6
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,109
    How about moving the code from Activate to Load. Activate has problems if you are trying to debug, since the event may not work correctly if there is a breakpoint in the area (not in the activate code itself).

    It sounds like you are getting into a circular reference, so you could use a boolean such that the code doesn't run if the boolean is false. Then you could toggle the boolean when needed. It's an ugly solution, but it would work.

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