Review for Mid-term! October 26, 2009. Review Homework Worksheet True or False Operators are symbols that perform specific operations in Visual Basic.

Slides:



Advertisements
Similar presentations
Pemrograman VisualMinggu …2… Page 1 MINGGU Ke Dua Pemrograman Visual Pokok Bahasan: Console Application Tujuan Instruksional Khusus: Mahasiswa dapat menjelaskan.
Advertisements

Using Macros and Visual Basic for Applications (VBA) with Excel
Using Multiple Forms! Creating a Splash Screen. Uses of Multiple Forms Includes: Dialog Boxes (appear often in Windows Programs) Splash Screen (a window.
Introduction to Computers and Programming Lecture 4: Mathematical Operators New York University.
Input Validation Check the values entered into a text box before beginning any calculations Validation is a form of ‘self-protection’, rejecting bad data.
Macros Tutorial Week 20. Objectives By the end of this tutorial you should understand how to: Create macros Assign macros to events Associate macros with.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Exploring Formulas.
Visual Basic Chapter 1 Mr. Wangler.
Transparency 2 Click the mouse button or press the Space Bar to display the answers.
T U T O R I A L  2009 Pearson Education, Inc. All rights reserved. 1 6 Enhancing the Inventory Application Introducing Variables, Memory Concepts and.
Variables and Constants
WEB DESIGN AND PROGRAMMING Introduction to Javascript.
Introduction to Access By Mary Ann Chaney and Alicia Harkleroad.
© 2006 Lawrenceville Press Slide 1 Chapter 3 Visual Basic Interface.
Chapter 3 Introducing Visual Basic.NET. 3.1 Visual Basic.NET Windows Programming -Used to create Windows, Web, and Console applications -Uses predefined.
Multiple Forms, Container Controls, AddHandler This presentation is based on the Forms and ContainerControls VB Projects 1.
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 2 Input, Processing, and Output.
06/10/ Working with Data. 206/10/2015 Learning Objectives Explain the circumstances when the following might be useful: Disabling buttons and.
Automating Database Processing Chapter 6. Chapter Introduction Design and implement user-friendly menu – Called navigation form Macros – Automate repetitive.
2440: 211 Interactive Web Programming Expressions & Operators.
Agenda  Commenting  Inputting Data from Keyboard (scanf)  Arithmetic Operators  ( ) * / + - %  Order of Operations  Mixing Different Numeric Data.
Microsoft Visual Basic 2005 BASICS Lesson 4 Mathematical Operators.
A First Look At Microsoft Visual Basic Lesson 1. What is Microsoft Visual Basic? Microsoft Visual Basic is a software development tool, which means it.
Chapter 12: How Long Can This Go On?
Arithmetic operations and operators, converting data types and formatting programs for output. Year 11 Information Technology.
Visual Basic.NET BASICS Lesson 4 Mathematical Operators.
Input, Output, and Processing
Basic Controls & Properties Chapter 2. Overview u VB-IDE u Basic Controls  Command Button  Label  Text Box  Picture Box u Program Editor  Setting.
 Application – another name for a program.  Interface – is what appears on the screen when the application is running.  Program Code – is instructions.
Chapter 2: Using Data.
Tutorial 11 Five windows included in the Visual Basic Startup Screen Main Form Toolbox Project Explorer (Project) Properties.
Chapter 4 Variables and constants. 4.1 Variables -Use of variables is good programming style -easier to modify -easier for a programmer to understand.
Working with the VB IDE. Running a Program u Clicking the”start” tool begins the program u The “break” tool pauses a program in mid-execution u The “end”
Copyright © 2012 Pearson Education, Inc. Publishing as Pearson Addison-Wesley C H A P T E R 2 Input, Processing, and Output.
Microsoft Visual Basic 2005: Reloaded Second Edition Chapter 3 Variables, Constants, Methods, and Calculations.
Data Types and Variables. Data Type! Computers are all about Data! Data can be in the form of Text Dates Sounds Pictures.
Illustration of a Visual Basic Program Running an Ada Program 1 by Richard Conn 11 September 1999.
Vocabulary in VB So Far. Assignment: Used to change the value of an object at run time Used to change the value of an object at run time.
Graphical User Interface You will be used to using programs that have a graphical user interface (GUI). So far you have been writing programs that have.
Introduction to Visual Basic Programming. Introduction Simple Program: Printing a Line of Text Another Simple Program: Adding Integers Memory Concepts.
Variables & Function Calls. Overview u Variables  Programmer Defined & Intrinsic  Data Types  Calculation issues u Using Functions  The val() function.
Chapter 4 Variables and constants. 4.1 Variables -Use of variables is good programming style -easier to modify -easier for a programmer to understand.
 2008 Pearson Education, Inc. All rights reserved JavaScript: Introduction to Scripting.
1 Chapter 3 – Examples The examples from chapter 3, combining the data types, variables, expressions, assignments, functions and methods with Windows controls.
Lesson 4 Mathematical Operators! October 6, 2009.
Python Lesson 1 1. Starter Create the following Excel spreadsheet and complete the calculations using formulae: 2 Add A1 and B1 A2 minus B2 A3 times B3.
Slide 1 Controls v Control naming convention –Label: lblName –Command Button: cmdName –Text Box: txtName.
Variables and Expressions Programming Right from the Start with Visual Basic.NET 1/e 7.
Visual Basic A Quick Tutorial VB Review for ACS 367.
More Visual Basic!. Creating a Standalone Program A standalone program will allow you to make a program file that can be run like other Windows programs,
Creation of Variables with Numeric, alphanumeric, date, picture, memo data types Constant - A quantity that does not change during the execution of a program.
Lesson 5 Exponentiation,Order of Operations and Error Handling.
Making Interactive Programs with Visual Basic .NET
Chapter 4.  Variables – named memory location that stores a value.  Variables allows the use of meaningful names which makes the code easier to read.
Slide 1 Chapter 3 Variables  A variable is a name for a value stored in memory.  Variables are used in programs so that values can be represented with.
© 2006 Lawrenceville Press Slide 1 Chapter 4 Variables  A variable is a name for a value stored in memory.  Variables are created using a declaration.
Slide 1 Chapter 3 Variables  A variable is a name for a value stored in memory.  Variables are created using a declaration statement. For example: Dim.
1 Agenda  Unit 7: Introduction to Programming Using JavaScript T. Jumana Abu Shmais – AOU - Riyadh.
Lesson 4 Mathematical Operators! September 29, 2008 (Pages 62-65)
Visual Basic.NET Windows Programming
A variable is a name for a value stored in memory.
Arithmetic operations and operators, converting data types and formatting programs for output. Year 11 Information Technology.
Introduction to Scripting
Microsoft Office Illustrated
Introduction to C++ Programming
HOW TO CREATE A CLASS Steps:
Introduction to Programming
Introduction to Visual Basic 2010
Presentation transcript:

Review for Mid-term! October 26, 2009

Review Homework Worksheet True or False Operators are symbols that perform specific operations in Visual Basic statements. True or False Text boxes are fields on a form that allow the user to enter a value. True or False Text boxes store user input in a numeric format. True or False The backslash character is used for integer division. True or False The Val function truncates the fractional part of a number. True or False In Visual Basic an expression cannot take up more than one line.

List the seven mathematical operators covered in today’s lesson. = Assignment* Multiplication + Addition- Subtraction / Division\ Integer Division Mod Modulus (for remainder) What are the differences between the forward slash and backslash? The forward slash (/) is used for normal divison and the backslash (\) is used for integer division Which operator returns the remainder of integer division? The Mod or Modulus operator Which character is used as the line-continuation character? The Underscore ( _ )

Using Multiple Forms VB allows you to work with multiple forms! Common uses are: – Dialog boxes (appears in Windows) – Splash Screens (is a window that appears briefly when a program is started.) – About boxes (is a window that provides information about the program.) – Or just simply another form!

Adding another form Complete the following steps: 1.Open VB. 2.Open your project. 3.Add a command button similiar to the one below:

Right click on Form1 in the Project Explorer. Choose Add and than choose Form. See below:

Choose Form and click Open. See below: You should see another form on your screen. Form 2

Double click the Next Page command button on Form1. Enter the following code to display Form2 when press and Form1 disappears. Form2.Show Form1.Hide Run your program. Do you get Form2 when you click the button?

How do you get to back to the first form? On Form2 enter a command button. Double click the Back button and enter the following code: Form1.show Form2.hide Run your program. Is it working correctly?

Having problems seeing the correct form when you run your program? Setting Project Properties: 1. Right click on Forms in Project Explorer.

You should get: Make sure that in the Startup Object box you have Form1. Your program should work now!

Continue working on your Halloween Program! Due in 4 days......