Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. To ust txt or database

To ust txt or database

Scheduled Pinned Locked Moved Visual Basic
questiondatabasetutorial
7 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hendrikbez
    wrote on last edited by
    #1

    I want to know how to make the following 1. What is the best to use for this txt or database. 2. If I have a question eg. "What animal eat grass". It must give me an answer with 1 or more possibilities eg, cow, springbok eg. 3. Then if I have a another question, "What Animal give us milk, it must also show "cow or more it the is. 4. I want to add new questions and answers, 5. A question can have a lot of answers 6. a answer (cow, eg) can have a lot of questions. 7. what is the best way to do this, 8. IS there a sample of how to start this.

    N C 2 Replies Last reply
    0
    • H hendrikbez

      I want to know how to make the following 1. What is the best to use for this txt or database. 2. If I have a question eg. "What animal eat grass". It must give me an answer with 1 or more possibilities eg, cow, springbok eg. 3. Then if I have a another question, "What Animal give us milk, it must also show "cow or more it the is. 4. I want to add new questions and answers, 5. A question can have a lot of answers 6. a answer (cow, eg) can have a lot of questions. 7. what is the best way to do this, 8. IS there a sample of how to start this.

      N Offline
      N Offline
      Nanda_MR
      wrote on last edited by
      #2

      Use the database for storing Data. label for asking Que. Checkbox when the ans is more then one. optionbox when the ans is single.

      1 Reply Last reply
      0
      • H hendrikbez

        I want to know how to make the following 1. What is the best to use for this txt or database. 2. If I have a question eg. "What animal eat grass". It must give me an answer with 1 or more possibilities eg, cow, springbok eg. 3. Then if I have a another question, "What Animal give us milk, it must also show "cow or more it the is. 4. I want to add new questions and answers, 5. A question can have a lot of answers 6. a answer (cow, eg) can have a lot of questions. 7. what is the best way to do this, 8. IS there a sample of how to start this.

        C Offline
        C Offline
        Christian Graus
        wrote on last edited by
        #3

        Use a text file. That would be funny. ( seriously, use XML or a DB )

        Christian Graus Driven to the arms of OSX by Vista.

        H 1 Reply Last reply
        0
        • C Christian Graus

          Use a text file. That would be funny. ( seriously, use XML or a DB )

          Christian Graus Driven to the arms of OSX by Vista.

          H Offline
          H Offline
          hendrikbez
          wrote on last edited by
          #4

          Thank you, I am going to use a database (Open office). Do anyone have some sample code on how to start with this program.

          C 1 Reply Last reply
          0
          • H hendrikbez

            Thank you, I am going to use a database (Open office). Do anyone have some sample code on how to start with this program.

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            open office ? Why ? You should use SQL Server Express, it's free and it's well supported in .NET. It's an easy task, you just need to design your DB to associate questions and possible answers, then write code to step through questions.

            Christian Graus Driven to the arms of OSX by Vista.

            H 1 Reply Last reply
            0
            • C Christian Graus

              open office ? Why ? You should use SQL Server Express, it's free and it's well supported in .NET. It's an easy task, you just need to design your DB to associate questions and possible answers, then write code to step through questions.

              Christian Graus Driven to the arms of OSX by Vista.

              H Offline
              H Offline
              hendrikbez
              wrote on last edited by
              #6

              Thank you, I totaly forgot about Sql, did not work with it before, Can I use Sql when I am finshed with my project, on other Pc that does not have sql on it. I am new to this, that is why I sam looking for sample code to start me off.

              T 1 Reply Last reply
              0
              • H hendrikbez

                Thank you, I totaly forgot about Sql, did not work with it before, Can I use Sql when I am finshed with my project, on other Pc that does not have sql on it. I am new to this, that is why I sam looking for sample code to start me off.

                T Offline
                T Offline
                Tom Deketelaere
                wrote on last edited by
                #7

                hendrikbez wrote:

                Can I use Sql when I am finshed with my project, on other Pc that does not have sql on it.

                Shure like Christian said the express edition is free so you can install it on the pc (or include it in your setup to install together with your program)

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups