I'm glad I came across your videos. I will recommend my classmates. My lecture has been getting paid for mumbling.
@ComputerScienceLessons2 жыл бұрын
Thank you. I hope your lecturer gets better :)KD
@jtlunsford780 Жыл бұрын
\ / MOD - very helpful explanations of my confused mind. Made notes so I don't forget where to look next time I use one or more of these operators and Data Type to match. Thanks......JT
@feraudyh3 жыл бұрын
I was very surprised to see strings converted to integers or double. Is this a compiler option?
@weibinren923 жыл бұрын
Hi, it doesn't work for me, it says Cast not valid from String to the Integer type
@kikawet4 жыл бұрын
If you input text instead of a number is going to use something like ascii to turn it into a number or is going to raise an exception?
@kevinerose3 жыл бұрын
you will need to put in some error checks to make sure the User enters a number. everything entered into a text box is already text. you need to check that the text will convert to a number prior to running the calculation.
@Maxxermaximus2 жыл бұрын
With your naming convention you have to go through your complete code if you decided to change the type of the variable like in your example. Not very helpful in big projects.
@ComputerScienceLessons2 жыл бұрын
Personally, I find the benefits outweigh the disadvantages. You can use find and replace when the need arises. If you are the only programmer working on a project, a standard approach is not so important. It's up to you :)KD
@Budgie27-v8i Жыл бұрын
10:32
@ailomarkdelacruz95243 жыл бұрын
ty very helful sir
@ComputerScienceLessons3 жыл бұрын
yw
@joachim10223 жыл бұрын
It doesnt work for me
@joachim10223 жыл бұрын
It says that Text is not a member of txtbox2
@ComputerScienceLessons3 жыл бұрын
Did you remember to name your textbox on the form? Check that you have spelled the name correctly in your code. When you type txt.. you should see a list of all the textboxes whose names start with txt.
@joachim10223 жыл бұрын
@@ComputerScienceLessons Yes I am sure I even copied exactly what you are doing but it says that txtbox1 was not declared even though its a name. And also it says Text is not a valid member of txtbox2
@ComputerScienceLessons3 жыл бұрын
I wonder if you have put a control other than a text box on the form. Highlight it and look at the top of the properties window, it should say System.Windows.Forms.TextBox.
@joachim10223 жыл бұрын
@@ComputerScienceLessons Thank you that helped
@CapnCook332 жыл бұрын
Thank you for this entire series, mate. I’m taking online courses and was tripping over basic stuff for a minute, these helped. I noticed some people mentioning conversions, I used CDbl(txtBox1.Text) and it worked brilliantly.