Results 1 to 14 of 14

Thread: how to generate

  1. #1

    Thread Starter
    Frenzied Member met0555's Avatar
    Join Date
    Jul 2006
    Posts
    1,385

    how to generate

    when the actor touch the button i want to ask him question. i will put the question in the code and i want the programe to ask him by gereating the question that i put in the code. is it possible? how?

  2. #2
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: how to generate

    Is it a yes/no question? If so you can just use a messagebox.show() to ask the question, and get their answer. If it is a question where they actually need to input text as their answer, then you would need to create a form.

  3. #3

    Thread Starter
    Frenzied Member met0555's Avatar
    Join Date
    Jul 2006
    Posts
    1,385

    Re: how to generate

    well, actually it's not a yes or no question, they have to enter the answer in the textbox. but u see when they start they restart the programe i don't want the peograme to ask them the same question so i want the programe to genreate the question and ask them. what i need is the code to generate from the question that i gave him


    tanks

  4. #4
    Arabic Poster ComputerJy's Avatar
    Join Date
    Nov 2005
    Location
    Happily misplaced
    Posts
    2,513

    Re: how to generate

    put your questions in a table, and make a field for answered questions (bit/Boolean/yes|no) or you simply can delete the row after asking the question it holds
    "I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
    My Blog

  5. #5
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: how to generate

    Quote Originally Posted by met0555
    well, actually it's not a yes or no question, they have to enter the answer in the textbox. but u see when they start they restart the programe i don't want the peograme to ask them the same question so i want the programe to genreate the question and ask them. what i need is the code to generate from the question that i gave him


    tanks
    met0555,

    If English is not your primary language, then it's totally cool, but I ask that you please take a little extra time to explain your issue, so it is clear for us to read and help you. If English IS your primary language, then I don't really know what to tell you.

    Reading what you wrote actually makes my head hurt a bit when trying to decipher it. It sounds like you are asking that if they answer certain questions, and they restart the program, you don't want them to be asked the questions that they have already answered? Is that correct?

  6. #6

    Thread Starter
    Frenzied Member met0555's Avatar
    Join Date
    Jul 2006
    Posts
    1,385

    Re: how to generate

    ok, when he open the second time my programe, and when he click the button i don't want the computer to ask him the same question at the first use.so i want him to generate the question and ask him. i think it's clear now

  7. #7
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: how to generate

    How many different questions will the program have to ask the person?

    what if they close it the second time and open it a 3rd time? does it show a new question that is different from the first two questions?

  8. #8

    Thread Starter
    Frenzied Member met0555's Avatar
    Join Date
    Jul 2006
    Posts
    1,385

    Re: how to generate

    well there will be about 20 questions, and if he close the next own will be the same.

  9. #9
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: how to generate

    Well the structure for this app would depend on what medium you plan to use on the backend. Obviously you will need to record certain things, like what questions have been asked, and what the answers were.

    How do you plan to save this data? database? xml? textfile?

  10. #10

    Thread Starter
    Frenzied Member met0555's Avatar
    Join Date
    Jul 2006
    Posts
    1,385

    Re: how to generate

    well i think i will use if textbox1 = haha then form2 show..... if textbox1 <> haha then msgbox wrong answer... if u have an esy way please tell me

  11. #11
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: how to generate

    No I mean you need to SAVE the information the user enters somehow. An exe has no way to remember what the user did last time, other than what you program into it. You would need to write code to ask the user a question, save their answer to a database or xml file or something, and then when the user loads the program again, the file/database is read, so the program knows what the user already answered, and the program knows what question it should ask next.

  12. #12

    Thread Starter
    Frenzied Member met0555's Avatar
    Join Date
    Jul 2006
    Posts
    1,385

    Re: how to generate

    well i'm not good at xml or database so it will be a litl hard for me. isn't going to work if i use txtbox. <> ..... ???

  13. #13
    I'm about to be a PowerPoster! kleinma's Avatar
    Join Date
    Nov 2001
    Location
    NJ - USA (Near NYC)
    Posts
    23,373

    Re: how to generate

    no. You need to some how record what the user has already done so you don't ask them the same questions when they open the app again

  14. #14

    Thread Starter
    Frenzied Member met0555's Avatar
    Join Date
    Jul 2006
    Posts
    1,385

    Re: how to generate

    so, how do i do the records??

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