Download presentation
Presentation is loading. Please wait.
Published byCathleen Mitchell Modified over 9 years ago
1
Lecture 4 Programming Technique Programming Appreciation
2
1- 2 Finding and Fixing Errors Syntax Errors Run-Time Errors Logic Errors
3
Syntax Error Double-click anywhere on this line to jump to the error
4
1 2 3 When the compiler identifies 確定 syntax errors, it cannot continue. Click No to return to the editor and correct the error. Syntax Error
5
1- 5 Project Property Page Dialog The default startup object if Form1 Using Project menu, Properties change the startup object to match the new name
6
1- 6 Private Sub btnSpanish_Click End Sub Finding and Fixing Errors Run-Time Errors Pass syntax checking but fail to execute. e.g. divide by zero; square root of a negative number. Logic Errors Project runs but produces incorrect results. e.g. Incorrect calculation; wrong text appears. Zero build errors means that you have a clean compile.
7
Naming Rules: Name Property How the programmer refers to a control in code Name must begin with a letter Must be less than _________________long May include numbers and the underscore (_) Use appropriate __ character naming______ e.g. txtName, lblName
8
1- 8 IntelliSense Automatically pops up to give the programmer help. Intellisense anticipates your needs during coding and displays prompts to assist you in coding
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.