@Masteryxx the code that generates the question "Do you have insurance" is writen outside the if statment so no matter what your answer at the first question is the program will display the second one. Just in case you haven't figure it out by now.
Lol its different to JavaScript too most languages have there minor differences but i would like to get to know those differences will help you to understand better why they are done the way they are done... I LOVE Javascript but i HAVE to learn this to get a certificate :P but this guy makes it interesting :)
It is throwing flags for unneeded values on both variables (= Nothing not needed); is this because of the updates done to VB since 2011 telling us it is not needed or is this just something that is no longer needed and discouraged when writing VB in these newer versions? Also this VB tutorial is better than the stuff on SkillShare and is better than college textbooks and the "...For Dummies/...For Idiots" books I've looked at.
He doesn't use "And" because what if you are 16 but don't have insurance? You wouldn't be able to say something along the lines of, "You can drive but be safe without insurance." Well, you could, but using nested if statements is much easier.
I would like a msgbox to appear before submiting. if they press yes then go to slide 3 Dim intresponse As Integer Private Sub CommandButton1_Click() correct = 0 intresponse = MsgBox("Are you sure you want to submit?", 36, " ") If intresponse = vbYes Then If TextBox1.Text = "2^6 - 63" Then correct = correct + 1 q1 = "Correct" SlideShowWindows(1).View.GotoSlide (3) Else correct = correct + 0 q1 = "Incorrect" SlideShowWindows(1).View.GotoSlide (3) End If TextBox1.Text = "" Please reply!
I like how every video is short because the information taught became easier to digest :)
9 years later and only 95k views??? this should me in the 5 millions.. Good vid. Thanks. I wish I have the half of your subs..
@Masteryxx the code that generates the question "Do you have insurance" is writen outside the if statment so no matter what your answer at the first question is the program will display the second one. Just in case you haven't figure it out by now.
Thank you for this video! It helps a lot
Lol its different to JavaScript too most languages have there minor differences but i would like to get to know those differences will help you to understand better why they are done the way they are done... I LOVE Javascript but i HAVE to learn this to get a certificate :P but this guy makes it interesting :)
i cant believe how much fun learning could be. who new lol. (coming from a 17 year old freshman haha)
I have a question. Can you do If age = >16 Then?
thanks sir. you solved my big problem
Great video's Love them...!
It is throwing flags for unneeded values on both variables (= Nothing not needed); is this because of the updates done to VB since 2011 telling us it is not needed or is this just something that is no longer needed and discouraged when writing VB in these newer versions?
Also this VB tutorial is better than the stuff on SkillShare and is better than college textbooks and the "...For Dummies/...For Idiots" books I've looked at.
yeah, i only added ">" symbol to fix that logic.
ty vm
yeyeyeye thank you
2 people got pulled over....
good video
the If statement will only work if age = 16. So why when you have age = 18 the question: "Do you have insurance" will appear ?
@sociomaladaptivist error: line line 6. LikeThis expected no arguments but received 1
He doesn't use "And" because what if you are 16 but don't have insurance? You wouldn't be able to say something along the lines of, "You can drive but be safe without insurance." Well, you could, but using nested if statements is much easier.
why dont we use
if Age = 16 And hasInsurance = true Than
Console.Writeline("blahblah")
else
console.writeline("blahblah")
end If
?
This is the same right? If age = 16 and insurance = true then
I would like a msgbox to appear before submiting. if they press yes then go to slide 3
Dim intresponse As Integer
Private Sub CommandButton1_Click()
correct = 0
intresponse = MsgBox("Are you sure you want to submit?", 36, " ")
If intresponse = vbYes Then
If TextBox1.Text = "2^6 - 63" Then
correct = correct + 1
q1 = "Correct"
SlideShowWindows(1).View.GotoSlide (3)
Else
correct = correct + 0
q1 = "Incorrect"
SlideShowWindows(1).View.GotoSlide (3)
End If
TextBox1.Text = ""
Please reply!
( and ) required
= ("derp")
Console.ExplodeViolently is not a valid expression.
Dude always forgets the "Console.ReadLine" Lol
My previous comment was supposed to be spaced out, sorry if it's a bit hard to read:/
Programming without { and } is so weird. :(
age => 18+ :)
Ops...sry didn't watch till the end :L