Basically, at school I just started higher computing. We're learning Visual Basic 6.0, so I thought I'd get it on my computer too.. but the only Visual Basic I can get is 2008.
So yeah, it's a tad different. I'm trying to make a little percentage calculator, to figure out what percentage of 70 marks someone got in an exam. So I've got this; a text box, a button and a second text box. For the code of the button I have:
This works fine on 6.0, but when I input this into 2008 I get "Mark is undefined" and "Perc is undefined".
So.. um.. halp?
So yeah, it's a tad different. I'm trying to make a little percentage calculator, to figure out what percentage of 70 marks someone got in an exam. So I've got this; a text box, a button and a second text box. For the code of the button I have:
Code:
mark = Val(text1) perc = (mark / 70) * 100 text2 = perc
So.. um.. halp?