Visual Basic.NET Programming. Beginner Lesson 7. Arithmetic Operators

  Рет қаралды 38,144

Computer Science Lessons

Computer Science Lessons

Күн бұрын

Пікірлер: 20
@azothazwane8474
@azothazwane8474 2 жыл бұрын
I'm glad I came across your videos. I will recommend my classmates. My lecture has been getting paid for mumbling.
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
Thank you. I hope your lecturer gets better :)KD
@jtlunsford780
@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
@feraudyh
@feraudyh 3 жыл бұрын
I was very surprised to see strings converted to integers or double. Is this a compiler option?
@weibinren92
@weibinren92 3 жыл бұрын
Hi, it doesn't work for me, it says Cast not valid from String to the Integer type
@kikawet
@kikawet 4 жыл бұрын
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?
@kevinerose
@kevinerose 3 жыл бұрын
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.
@Maxxermaximus
@Maxxermaximus 2 жыл бұрын
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.
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
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
@Budgie27-v8i Жыл бұрын
10:32
@ailomarkdelacruz9524
@ailomarkdelacruz9524 3 жыл бұрын
ty very helful sir
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
yw
@joachim1022
@joachim1022 3 жыл бұрын
It doesnt work for me
@joachim1022
@joachim1022 3 жыл бұрын
It says that Text is not a member of txtbox2
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
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.
@joachim1022
@joachim1022 3 жыл бұрын
@@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
@ComputerScienceLessons
@ComputerScienceLessons 3 жыл бұрын
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.
@joachim1022
@joachim1022 3 жыл бұрын
@@ComputerScienceLessons Thank you that helped
@CapnCook33
@CapnCook33 2 жыл бұрын
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.
@ComputerScienceLessons
@ComputerScienceLessons 2 жыл бұрын
Delighted to help :)KD
Visual Basic.NET Programming. Beginner Lesson 8. Complex Arithmetic Expressions
8:26
Visual Basic.NET Programming. Beginners Lesson 3. Output and Variables
15:14
Computer Science Lessons
Рет қаралды 87 М.
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
The Best Band 😅 #toshleh #viralshort
00:11
Toshleh
Рет қаралды 22 МЛН
Visual Basic.NET Programming. Beginner Lesson 5. Input with Windows Forms
12:23
Computer Science Lessons
Рет қаралды 67 М.
Visual Basic.NET Programming. Beginner Lesson 10. Logical and Relational Operators 1
14:34
Learn Any Programming Language In 3 Hours!
22:37
Code With Huw
Рет қаралды 641 М.
Visual Basic.NET Programming. Beginner Lesson 6. Debugging Code
8:29
Computer Science Lessons
Рет қаралды 43 М.
VB Beginner 1 - What is VB and What is .NET?
6:50
TechEdGuru
Рет қаралды 98 М.
Visual Basic.NET Programming. Beginner Lesson 9. Selection with If Statements
10:09
Computer Science Lessons
Рет қаралды 34 М.
Visual Basic.NET Programming. Beginner Lesson 4. Variable Data Types
7:31
Computer Science Lessons
Рет қаралды 61 М.
Visual Basic.NET Programming. Beginner Lesson 11. Logical and Relational Operators 2
9:06
VB.NET 2013 - Arrays
32:11
Nicholas Dingle
Рет қаралды 70 М.