|
-
Aug 28th, 2006, 02:25 PM
#1
Thread Starter
Frenzied Member
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?
-
Aug 28th, 2006, 02:36 PM
#2
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.
-
Aug 28th, 2006, 02:44 PM
#3
Thread Starter
Frenzied Member
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
-
Aug 28th, 2006, 02:50 PM
#4
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
-
Aug 28th, 2006, 02:53 PM
#5
Re: how to generate
 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?
-
Aug 28th, 2006, 03:03 PM
#6
Thread Starter
Frenzied Member
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
-
Aug 28th, 2006, 03:04 PM
#7
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?
-
Aug 28th, 2006, 03:08 PM
#8
Thread Starter
Frenzied Member
Re: how to generate
well there will be about 20 questions, and if he close the next own will be the same.
-
Aug 28th, 2006, 03:12 PM
#9
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?
-
Aug 28th, 2006, 03:18 PM
#10
Thread Starter
Frenzied Member
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
-
Aug 28th, 2006, 03:20 PM
#11
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.
-
Aug 28th, 2006, 03:37 PM
#12
Thread Starter
Frenzied Member
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. <> ..... ???
-
Aug 28th, 2006, 03:38 PM
#13
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
-
Aug 28th, 2006, 04:07 PM
#14
Thread Starter
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|