Register - Members List - Calendar - Mark Forums Read -

Go Back   Just Commodores > Main > The Pub > The LAN Lounge

The LAN Lounge All things computing.

Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old 14-08-2008, 10:48 AM
Haydz's Avatar
GREENFOAM.. YOU ROCK.
 

Ride: 94 VR Berlina - 5 Speed
Join Date: Nov 2007
Location: Liverpool.Sydney,NSW
Trade Rating: (0)
Posts: 806
Haydz Berlina
Default Visual Basic Help

hey guys im doing a school project and need some help with visual basic.

anyone any good at it and willing to give me a hand?

cheers
__________________
Haydz VR
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Bookmark to AskJeeves!Bookmark to Slashdot!Live Bookmark this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Sponsored Links
  #2  
Old 14-08-2008, 10:49 AM
ToMmO9's Avatar  

Ride: VS Executive S1
Join Date: Jan 2008
Location: Albany, WA
Trade Rating: (0)
Posts: 108
ToMmO9 Executive
Default

They do VBS in school now?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Bookmark to AskJeeves!Bookmark to Slashdot!Live Bookmark this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 14-08-2008, 10:56 AM
Haydz's Avatar
GREENFOAM.. YOU ROCK.
 

Ride: 94 VR Berlina - 5 Speed
Join Date: Nov 2007
Location: Liverpool.Sydney,NSW
Trade Rating: (0)
Posts: 806
Haydz Berlina
Default

Yeah.

in Software Design And Development
__________________
Haydz VR
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Bookmark to AskJeeves!Bookmark to Slashdot!Live Bookmark this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 14-08-2008, 11:00 AM
stocky's Avatar  

Ride: VR Clubsport 5 speed, VN V6
Join Date: Jun 2005
Location: Melbourne
Trade Rating: (0)
Posts: 3,460
stocky GTSstocky GTS
Default

Quote:
Originally Posted by ToMmO9 View Post
They do VBS in school now?
not vbs. just vb i think he means. what do you need help with. vb is pretty easy
__________________

VR HSV Clubsport
5 speed manual, Pacemaker headers, Twin cats, Twin 2.5 exhaust with crossover pipe, Leather GTS interior
Supercharged VN V6
9 PSI SC14 Intercooled, Genie headers, Twin cats, HM Twin 2.25 exhaust
Intercooled SC-14 Supercharger parts for sale



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Bookmark to AskJeeves!Bookmark to Slashdot!Live Bookmark this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old 14-08-2008, 11:34 AM
ProphetVX's Avatar  

Ride: A Pushie
Join Date: Mar 2006
Location: Cronulla, NSW
Trade Rating: (0)
Posts: 228
ProphetVX Berlina
Default

Quote:
Originally Posted by ToMmO9 View Post
They do VBS in school now?
VBS is different to VB.

Post any problems you're having... It's been about 8 years since I've worked with VB, but I do alot of C# and J2EE development, so I may be able to help with things in terms of logic, syntax is another issue but pretty easy to solve via the compiler.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Bookmark to AskJeeves!Bookmark to Slashdot!Live Bookmark this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old 14-08-2008, 12:13 PM
ToMmO9's Avatar  

Ride: VS Executive S1
Join Date: Jan 2008
Location: Albany, WA
Trade Rating: (0)
Posts: 108
ToMmO9 Executive
Default

Ah kk my bad.

I thought they were the same.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Bookmark to AskJeeves!Bookmark to Slashdot!Live Bookmark this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old 14-08-2008, 12:14 PM
AirStrike's Avatar
<---------Aint it true!
 

Ride: 91' VN SS & 94' VR BT1
Join Date: Jul 2003
Location: Melbourne
Trade Rating: (0)
Posts: 6,178
AirStrike Senator SignatureAirStrike Senator SignatureAirStrike Senator Signature
Default

As mentioned, what do you need help with? It's been a few years since I have really used it, but used to be a gun
__________________
function > form
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Bookmark to AskJeeves!Bookmark to Slashdot!Live Bookmark this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old 14-08-2008, 12:40 PM
Haydz's Avatar
GREENFOAM.. YOU ROCK.
 

Ride: 94 VR Berlina - 5 Speed
Join Date: Nov 2007
Location: Liverpool.Sydney,NSW
Trade Rating: (0)
Posts: 806
Haydz Berlina
Default

well i have written a program that is a quiz.

but for some reason i cant get the score to add each time you get a correct answer.

i have it as

wrong answer =score +score
correct answer_ = score +score+1

then lblscore.caption=score

where should i be declaring it? in the click code?

and should it be a static or dim?

cheers guys.

if it makes it easier i can post it up. with visual basic portable.
__________________
Haydz VR
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Bookmark to AskJeeves!Bookmark to Slashdot!Live Bookmark this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old 14-08-2008, 12:41 PM
stocky's Avatar  

Ride: VR Clubsport 5 speed, VN V6
Join Date: Jun 2005
Location: Melbourne
Trade Rating: (0)
Posts: 3,460
stocky GTSstocky GTS
Default

probably easier to post up the actual code
__________________

VR HSV Clubsport
5 speed manual, Pacemaker headers, Twin cats, Twin 2.5 exhaust with crossover pipe, Leather GTS interior
Supercharged VN V6
9 PSI SC14 Intercooled, Genie headers, Twin cats, HM Twin 2.25 exhaust
Intercooled SC-14 Supercharger parts for sale



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Bookmark to AskJeeves!Bookmark to Slashdot!Live Bookmark this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old 14-08-2008, 01:06 PM
ProphetVX's Avatar  

Ride: A Pushie
Join Date: Mar 2006
Location: Cronulla, NSW
Trade Rating: (0)
Posts: 228
ProphetVX Berlina
Default

Quote:
Originally Posted by Haydz View Post
well i have written a program that is a quiz.

but for some reason i cant get the score to add each time you get a correct answer.

i have it as

wrong answer =score +score
correct answer_ = score +score+1

then lblscore.caption=score

where should i be declaring it? in the click code?

and should it be a static or dim?

cheers guys.

if it makes it easier i can post it up. with visual basic portable.
Have you got the score defined within a global scope or local scope?

Static variables hold their value at local scope, even once the function has completed.
Public Sub test()
Static test
test = test + 1
End Sub

That would increment test every time the function is called, but that variable would not be accessible outside of the function. It's for internal use only. Dims or regular variables would result in the variable being reset to 0 before being incremented every time the function is called.

For any function to access the score, you either need to pass it into a function that will display the new score, or have it defined globally.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Bookmark to AskJeeves!Bookmark to Slashdot!Live Bookmark this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old 25-08-2008, 09:19 AM
Burnout, Burn What out?
 

Ride: VS Berlina V6
Join Date: Feb 2007
Location: Melbourne
Trade Rating: (0)
Posts: 1,528
DannyboyDS Statesman
Default

looks like your in good hands here, if you get stuck you can PM me directly, VB was my best subject when I did my diploma, I still have the big friggen books for it too, just in case.

also google VBCODE and that will give you a wealth of info, sometimes simply reading other people programs can give you a better understanding of how a good program should flow.
__________________
My Berlina << Link

Quote:
Originally Posted by Philthy View Post
Then pedal home as fast as you can because you might miss pony club
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Bookmark to AskJeeves!Bookmark to Slashdot!Live Bookmark this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old 08-09-2008, 05:20 PM
Haydz's Avatar
GREENFOAM.. YOU ROCK.
 

Ride: 94 VR Berlina - 5 Speed
Join Date: Nov 2007
Location: Liverpool.Sydney,NSW
Trade Rating: (0)
Posts: 806
Haydz Berlina
Default

Hey guys i have found the problem.

it is that the correct answer is one behind the question.


i know its something simple i just cant seem to get it.


any help will be greatly appreciated.
Attached Files
File Type: rar sports quiz.rar (3.3 KB, 5 views)
__________________
Haydz VR
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Bookmark to AskJeeves!Bookmark to Slashdot!Live Bookmark this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old 09-09-2008, 03:49 PM
Haydz's Avatar
GREENFOAM.. YOU ROCK.
 

Ride: 94 VR Berlina - 5 Speed
Join Date: Nov 2007
Location: Liverpool.Sydney,NSW
Trade Rating: (0)
Posts: 806
Haydz Berlina
Default

Anyone??......
__________________
Haydz VR
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Google Bookmark this Post!Yahoo Bookmark this Post!Bookmark to AskJeeves!Bookmark to Slashdot!Live Bookmark this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On