Finishing Up.

Slides:



Advertisements
Similar presentations
Coding and Debugging. Requirements and Specification Recall the four steps of problem solving: Orient, Plan, Execute, Test Before you start the implementation.
Advertisements

COMPUTER PROGRAMMING I Essential Standard 5.02 Understand Breakpoint, Watch Window, and Try And Catch to Find Errors.
Tutorial 12: Enhancing Excel with Visual Basic for Applications
Customisation The GUI in most GIS applications is sufficient for most needs. However, situations arise where you want either to: –Modify the interface,
Lesson 6 Software and Hardware Interaction
Debugging Techniques1. 2 Introduction Bugs How to debug Using of debugger provided by the IDE Exception Handling Techniques.
Error Trapping Part II Runtime Errors Error Handling Conclusion Questions Syntax Errors Error Categories Logic Errors Debugging Tools The Err Object Error.
BIM313 – Advanced Programming Techniques Debugging 1.
Lecture Roger Sutton CO331 Visual programming 15: Debugging 1.
General Computer Science for Engineers CISC 106 Lecture 21 Dr. John Cavazos Computer and Information Sciences 04/10/2009.
The IDE (Integrated Development Environment) provides a DEBUGGER for locating and correcting errors in program logic (logic errors not syntax errors) The.
1 Lab Session-2 CSIT 121 Spring 2005 Debugging Tips NiMo’s Varying Rates Lab-2 Exercise.
How to Debug VB .NET Code.
Guidelines for working with Microsoft Visual Studio.Net.
Guidelines for working with Microsoft Visual Studio 6.
Compilers and Interpreters. Translation to machine language Every high level language needs to be translated to machine code There are different ways.
Chapter 2 Build Your First Project A Step-by-Step Approach 2 Exploring Microsoft Visual Basic 6.0 Copyright © 1999 Prentice-Hall, Inc. By Carlotta Eaton.
Introduction to Java CSIS 3701: Advanced Object Oriented Programming.
Using a Debugger. SWC What is ”debugging”? An error in a computer program is often called a ”bug”… …so, to ”debug” is to find and get rid of errors in.
PROGRAMMING IN VISUAL BASIC.NET VISUAL BASIC BUILDING BLOCKS Bilal Munir Mughal 1 Chapter-5.
Lesson 6. GCSE Computing – programming languages Candidates should be able to:  describe common tools and facilities available in an integrated development.
Errors Part I Error Messaging Error Handling Conclusion Questions What is an Error What is VBA Types of Errors Error Commands Error Flow Error Trapping.
VB Core II Conditional statements Exception handling Loops Arrays Debugging.
VB – Debugging Tools Appendix D. Why do we need debugging? Every program has errors, and the process of finding these errors is debugging Types of errors.
1 Κατανεμημένες Διαδικτυακές Εφαρμογές Πολυμέσων Γιάννης Πετράκης.
MS Visual Basic Applications Walter Milner. Event-driven programming Standard approach for GUIs Contrast with old character interfaces – program determines.
CSC 2405 Computer Systems II Exceptions Mini-Lecture Traps & Interrupts.
Chapter 3 The Visual Basic Editor. Important Features of the VBE Alt-F11 will open the Visual Basic Editor. The Code window is to the right, Project Explorer.
Using Microsoft Visual Studio C++ Express 2005 Name: Dr Ju Wang Ashwin Belle Course Resource:
Visual Basic.NET Comprehensive Concepts and Techniques Chapter 8 Debugging, Creating Executable Files, and Distributing a Windows Application.
CS Class 05 Topics  Selection: switch statement Announcements  Read pages 74-83, ,
Debugging Visual Basic.NET Programs ► ► Use debugging tools ► ► Set breakpoints and correct mistakes. ► ► Use a Watch and Local window to examine variables.
Copying Music From a CD Margaret S. Britt. Loading Media Player  Click Start  Select the Windows Media Player.
Using Visual Studio C++ Express Ron Gross A current copy of this can be found at or this direct linkhttp://tinyurl.com/2ucarothis.
How to Program? -- Part 1 Part 1: Problem Solving –Analyze a problem –Decide what steps need to be taken to solve it. –Take into consideration any special.
CS12230 Introduction to Programming Lecture 6-2 –Errors and Exceptions 1.
5.01 Understand Different Types of Programming Errors
Visual Basic Integrated Development Environment (IDE) 56:150 Information System Design.
E Copyright © 2007, Oracle. All rights reserved. Using JDeveloper.
AVCE ICT – Unit 7 - Programming Session 12 - Debugging.
Visual Basic.Net. Software to Install Visual Studio 2005 Professional Edition (Requires Windows XP Pro) MSDN Library for Visual Studio 2005 Available.
COMPUTER PROGRAMMING I SUMMER Understand Different Types of Programming Errors.
Netbeans QuickStart. Creating a project File->New Project –For now you want General->Java Application –Then fill in the project details.
OCR A Level F453: The function and purpose of translators Translators a. describe the need for, and use of, translators to convert source code.
Visual Programming Borland Delphi. Developing Applications Borland Delphi is an object-oriented, visual programming environment to develop 32-bit applications.
Chapter 6 Testing and running a solution. Errors X Three types Syntax Logic Run-time.
CS 201 Lecture 1 (b) Using an IDE Tarik Booker CS 201: Introduction to Programming California State University, Los Angeles.
Debuggers. Errors in Computer Code Errors in computer programs are commonly known as bugs. Three types of errors in computer programs –Syntax errors –Runtime.
Optimizing your windows system. Windows updates Updates Security updates Feature updates Driver updates Service pack A group of features & Security updates.
Chapter 5: Preparing C Programs
Wrapper Classes Debugging Interlude 1
Mobile Device Development
A variable is a name for a value stored in memory.
5.01 Understand Different Types of Programming Errors
Programming in visual basic .net Visual Basic Building Blocks
VBA - Excel VBA is Visual Basic for Applications
ME 142 Engineering Computation I
Software Design and Development
A451 Theory – 7 Programming 7A, B - Algorithms.
INSTALL PROVIDER PROJECT REVIEW – I JAN 2004 S.RAMESH R.SENTHIL NATHAN
Microsoft Access Illustrated
5.01 Understand Different Types of Programming Errors
Introduction to System Programming
MIPS coding.
Tonga Institute of Higher Education
Debugging Visual Basic Programs
Microprocessor and Assembly Language
PROGRAMMING INTRODUCTION
Getting around in Windows and VB
Presentation transcript:

Finishing Up

Control Arrays Control Arrays are sets of controls. Each one is subscripted, from 0 to n. That allows you to handle all of the controls together. 1. Copy the control Paste it Answer YES to the control array question.

Trapping Errors Private Sub BlahBlah() X=7/0 On Error Goto ErrHandler ‘More lines of code ErrHandler: X=0 If Err.Number = 11 then msgBox_ (“You tried to divide by 0!!) Exit Sub End Sub

Debugging

2 main types of errors Logic Errors – Something in the programming methodology Syntax Errors – Bad lines of code. These are usually caught at design time.

Debugging Debug.Print – Immediate Window Commenting out code Step into, etc. MsgBox(yourVariable) Breakpoints Stubs – running functions/subroutines only. Setting Watch Variables Step Into/Over/Out

Compiling/Distributing

Compiling makes the program Executable on other machines Speeds up execution, because the computer no longer has to compile the program each time. File / Make xxxxxx.exe Options – Generally Compile to native code and Optimize for fast code. Usually – Optimize for fast code.

Package and Deployment Wizard Get it from Add-Ins Helps determine fitting program on disk Helps to set up an installation program Helps to distribute over network Helps to distribute over internet Provides uninstall program