Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Regular Coder
    Join Date
    Sep 2002
    Location
    Calgary, AB
    Posts
    179
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Read several items at once (Java)

    Is it possible to use the IO.readDouble variable, but to have the user be able to enter more than one item at a time?

    For example, if I wanted to the user to be able to enter in the grades of 10 different students, but didn't want them to have to enter one in, then click OK, then enter another grade in and click OK, then another ect... I just want one screen to appear with 10 boxes, that say student 1, student 2, student 3, ect... beside each of them.

    How would I do this?

  • #2
    Senior Coder
    Join Date
    Feb 2004
    Posts
    1,206
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well I don't know what your "form" with the 1 input box looks like, but alter that form to have 10 boxes.

    Then alter the code that executes on pressing the OK button so that instead of only looking at the 1 box, it executes the code on all 10 boxes.

    The way I see it is that if you've got it working for 1 box, you should be able to make it work for multiple boxes using a loop.

    Hope that helps,
    Sadiq.

  • #3
    Regular Coder
    Join Date
    Sep 2002
    Location
    Calgary, AB
    Posts
    179
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks!


  •  

    Posting Permissions

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