Visual Basic
|
Hey, I'm trying to create a math tutorial program and was wondering if anyone knows what i would need to input to make like a question to answer. Then have choices A-D, and when they choose the answer it would say if it was correct or not and then a button to click back and forth through questions? |
Re: Visual Basic
|
I think its easy to make....... first, make a question database... you can use IF or CASE to correct the answer..... but sorry, i cant post the sample script now. :(
greatest in the world of YAKUMO fans... I'm the number one!
|
Re: Visual Basic
Link |
by MiCHiYo μ
on 2007-03-12 22:09:59
|
hang on. that sounds familiar... this is VB? what version? -michiyo- beware. the QueeN oF SiGGieS is here. kill that mr. scrolly or your siggy goes BAI BAI. it's solidarity month! let's be united! +[-- GeNDouNiaNS: i am half-back! visit my blog by clicking on the siggie banner! updated: 12.07.07 --]+
~*..:: i'm never going to give up... if i do, then it wasn't worth trying. ::..*~  
|
Re: Visual Basic
Link |
by
on 2007-03-12 22:44:27
|
list or array or database of the questions displayed using label display choices using radiobuttons.. use conditional statements to verify the answer is correct or not.. you can either display Correct or Wrong using label on the same window or by using message box.. when you used array on the questions... the back/next button can point to the previous or next index of the array.. |
Re: Visual Basic
Link |
by
on 2007-03-14 03:30:41
|
Hmm... i did this b4... lemme TRY an recall. Hmm... Ehh... If im not WRONG, u'll need to inroduce a varible on the [general] tab Then u'll need a text file. the text in it should be in the format: Question1 option1 option2 option3 option4 Question2 option1 option2 option3 option4 etc. Layout Code: General: dim answer$(5) Command1 For x=1to5 combo1(x).clear next l$=filename.txt open l$ for input as #1 for x=1to5 line input #1, kk$ label1(x).caption = kk$ next for x=1to5 line input #1, kk$ answer$(x)=kk$ combo1(x).text=kk$ next close#1 for combo combo1 for x = 1 to 5 if combo1(x).text=answer$(x) then score%=score%+1 next x msgbox(str$(score%)) I'm not sure of this is what u are loking for. I am not even sure if this code works as i dont have VB to try it out. So its worth a try ^^ =P A friend of today is an enemy of tomorrow. I am an empty shell. I don't feel loved at all |
Re: Visual Basic
|
did your code work? |
Re: Visual Basic
Link |
by
on 2007-03-16 17:30:28
|
It worked some 2 years ago hahahaha XD A friend of today is an enemy of tomorrow. I am an empty shell. I don't feel loved at all |
Re: Visual Basic
|
I don't like VBasic... but yeah... I have to admit it... it's easy and powerful enough... The codename's r3ck0rd. Find me in my Facebook Profile Page, or in my blog.
|
Re: Visual Basic
Link |
by
on 2007-04-11 12:23:55
|
@Fenix: you definitely need an array of questions and answers. If you are many questions and answer you need to manage, a database will definitely be the way to go. There are so so many ways to skin this cat with VB I think you need to do some trial and error. It should not be too difficult to do. @æž—(ã¯ã‚„ã—)德耀(トクヨウ)(カルヴィン): For the programmably challenged people like me, VB is godsend. It helped to have Pascal under my belt but VB was easy enough to learn and powerful enough to do most of what I need. Of course C++ maybe better in some aspects. |
Re: Visual Basic
|
I'm quite familiar with C++ and Java because I learn AS and PHP first. The codename's r3ck0rd. Find me in my Facebook Profile Page, or in my blog.
|
Re: Visual Basic
|
yea... VBasic... what version of VBasic are you trying to program with?... |
Re: Visual Basic
Link |
by
on 2007-04-28 06:45:04
|
There are many types on how to used visual basic.. Of course it is a java script programming language.. Try using If and else statements.. Thats makes it easy to identify the correct and wrong answer... Other is the do-and-while statements.. Best Regards |