Forums

Forums (http://www.abandonia.com/vbullet/index.php)
-   Programming (http://www.abandonia.com/vbullet/forumdisplay.php?f=25)
-   -   Visual Basic, Helpme! (http://www.abandonia.com/vbullet/showthread.php?t=11083)

hotty_green 18-07-2006 02:35 AM

i have to write a project that acts like a simple quizz, 3 topic (shakespeare) and has about 10 questions to each topic. any ideas for the codeing?

Data 18-07-2006 06:59 AM

just start ?
It shouldn't be that hard.

hotty_green 18-07-2006 10:44 PM

yeah i did start, i did the background work, found the QA's i needed, set up the main form... but it's the codes i need the help with. i just cannot get the lingo. :wallbash:

velik_m 19-07-2006 07:16 AM

Code:

Dim greens_vbasic_knowledge as Integer

if greens_vbasic_knowledge=0 then
************ MsgBox("Read some books about it and come back with more concrete questions! We won't program for you.",64)
else
************ MsgBox("RTFM!",1)
end

i hope i got it right, it's been a while since i programed in VB

Shrek 19-07-2006 11:11 AM

Hey velik, maybe the guy really deserves that as he probably expected someone to do the work for him, but maybe you could also suggest something more productive, like a book or something. I'm pretty sure there must be some kind of "Visual Basic for beginners" book or magazine somewhere (although I never bought any - but again, I never had the need to know anything about VB :whistling: ).

guesst 19-07-2006 02:54 PM

First of all, that guy's a girl. That girl is in programming class. So books and tutorials she probably has.

And secondly I think his coding solution is darn impressive. Made me laugh anyways.

Ioncannon 19-07-2006 05:40 PM

what version of visual basic?

vb 6.0 or the newer one thats used I think its VB .net cause I only know the older vb 6.0.

Anyway, for each question, make a radio button. One yes, and one no. Make two interger variables, total_correct and total_wrong. For each question's correct radio button, have it increment the total_correct variable, and for incorrect answers, the total_wrong variable. At the end, dump both variables into a msgbox or a label, ie:

You got 8 Questions right, and 4 questions wrong.

There are other ways doing this too.

BTW velik, in the msgbox, what is RTFM?. I am guessing thats the message since its in quotes? This one:

MsgBox("RTFM!",1)

velik_m 19-07-2006 06:39 PM

Read The F***ing Manual


The current time is 01:57 AM (GMT)

Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.