Results 1 to 5 of 5

Thread: RESOLVED Where can I move this code?

Threaded View

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 2002
    Location
    Auckland
    Posts
    17

    RESOLVED Where can I move this code?

    I am not very good at this and don't quite know how to word my question.

    I have a program where the user selects the number of questions they want to be asked and then clicks the start button. When the start button is pressed the program checks how many questions the user is going to be asked and sets the variable. After this the start button is disabled and the user uses the next button for the next question.


    What can I do with the question generation code so it is not contained within the start and next buttons click code?

    As you can see the program just asks random multiplication questions.

    Randomize
    intResult1 = Int((12 * Rnd) + 1)
    intResult2 = Int((12 * Rnd) + 1)
    QuestionText.Caption = intResult1 & "X" & intResult2 & " ="

    Thanks.
    Last edited by Crazy Spas; Jun 22nd, 2006 at 05:53 PM.

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