| The LAN Lounge All things computing. |

14-08-2008, 10:48 AM
|
 |
GREENFOAM.. YOU ROCK.
|
|
Ride: 94 VR Berlina - 5 Speed
Join Date: Nov 2007
Location: Liverpool.Sydney,NSW
Posts: 806
|
|
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
|

14-08-2008, 10:49 AM
|
 |
|
|
Ride: VS Executive S1
Join Date: Jan 2008
Location: Albany, WA
Posts: 108
|
|
They do VBS in school now?
|

14-08-2008, 10:56 AM
|
 |
GREENFOAM.. YOU ROCK.
|
|
Ride: 94 VR Berlina - 5 Speed
Join Date: Nov 2007
Location: Liverpool.Sydney,NSW
Posts: 806
|
|
Yeah.
in Software Design And Development
|

14-08-2008, 11:00 AM
|
 |
|
|
Ride: VR Clubsport 5 speed, VN V6
Join Date: Jun 2005
Location: Melbourne
Posts: 3,460
|
|
Quote:
Originally Posted by ToMmO9
They do VBS in school now?
|
not vbs. just vb i think he means. what do you need help with. vb is pretty easy
|

14-08-2008, 11:34 AM
|
 |
|
|
Ride: A Pushie
Join Date: Mar 2006
Location: Cronulla, NSW
Posts: 228
|
|
Quote:
Originally Posted by ToMmO9
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.
|

14-08-2008, 12:13 PM
|
 |
|
|
Ride: VS Executive S1
Join Date: Jan 2008
Location: Albany, WA
Posts: 108
|
|
Ah kk my bad.
I thought they were the same.
|

14-08-2008, 12:14 PM
|
 |
<---------Aint it true!
|
|
Ride: 91' VN SS & 94' VR BT1
Join Date: Jul 2003
Location: Melbourne
Posts: 6,178
|
|
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
|

14-08-2008, 12:40 PM
|
 |
GREENFOAM.. YOU ROCK.
|
|
Ride: 94 VR Berlina - 5 Speed
Join Date: Nov 2007
Location: Liverpool.Sydney,NSW
Posts: 806
|
|
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.
|

14-08-2008, 12:41 PM
|
 |
|
|
Ride: VR Clubsport 5 speed, VN V6
Join Date: Jun 2005
Location: Melbourne
Posts: 3,460
|
|
probably easier to post up the actual code
|

14-08-2008, 01:06 PM
|
 |
|
|
Ride: A Pushie
Join Date: Mar 2006
Location: Cronulla, NSW
Posts: 228
|
|
Quote:
Originally Posted by Haydz
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.
|

25-08-2008, 09:19 AM
|
|
Burnout, Burn What out?
|
|
Ride: VS Berlina V6
Join Date: Feb 2007
Location: Melbourne
Posts: 1,528
|
|
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
Then pedal home as fast as you can because you might miss pony club
|
|

08-09-2008, 05:20 PM
|
 |
GREENFOAM.. YOU ROCK.
|
|
Ride: 94 VR Berlina - 5 Speed
Join Date: Nov 2007
Location: Liverpool.Sydney,NSW
Posts: 806
|
|
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.
|

09-09-2008, 03:49 PM
|
 |
GREENFOAM.. YOU ROCK.
|
|
Ride: 94 VR Berlina - 5 Speed
Join Date: Nov 2007
Location: Liverpool.Sydney,NSW
Posts: 806
|
|
Anyone??......
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
| | | |