Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2011
    Thanked 0 Times in 0 Posts

    How to make this program in visual basics?

    Since i have to study for school tonight, and i dont really want to study, i want to do something fun, so i came up with the idea of creating a program, where you enter in your question, then the answer of the question (multiple questions) then be able to go to another page or something and be able to randomize the question and study (kind of like note cards but on the computer)

    If anyone can guild me to a tutorial or what i have to use that would be appreciated

    This really isnt homework, as im not turning it in, i just want something i can use on the computer rather than using some note cards
    Last edited by cfsnip; 06-07-2011 at 04:56 AM.

  2. #2
    Regular Coder bobleny's Avatar
    Join Date
    May 2007
    Thanked 11 Times in 11 Posts
    The easiest way I can think of to do what you want is to create a two dimensional array and hard code all of the questions and answers.

    If you want to go more sophisticated, you could create a database and save the questions and answers in the database.

    You could also create a text file in which you write the question on one line, then the answer on the next that could then read by your program.

    There are of course many other ways of doing it, but those are probably the three most common methods...
    * No good deed goes unpunished.
    * Cheer up, the worst has yet to come...


Posting Permissions

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