Results 1 to 4 of 4

Thread: something wrong with this code

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 1999
    Location
    Baytown, TX United States
    Posts
    19

    Post

    When I run this code the numbers blur. I can't figure out why. Is it because it's infinite? Here it is:

    Dim curSales as Currency
    curSales = Val(Inputbox("Enter a sales amount")
    Do While curSales > 0
    Print curSales * .1
    Loop

  2. #2
    Lively Member
    Join Date
    Jun 1999
    Posts
    120

    Post

    it's causing an infinite loop.
    for instance, when the value is 10,
    that's always greater than 0, so
    the "Do" loop causes an infinite loop...

  3. #3

    Thread Starter
    Junior Member
    Join Date
    Nov 1999
    Location
    Baytown, TX United States
    Posts
    19

    Post

    What should I do then?

    ------------------
    kazooie21

  4. #4
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    What exactly are you trying to do?

    ------------------

    Serge

    Software Developer
    [email protected]
    [email protected]
    ICQ#: 51055819


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