Controls, Properties, and Procedures

Slides:



Advertisements
Similar presentations
Sub and Function Procedures
Advertisements

A Level Computing#BristolMet Session Objectives#U2 S8 MUST identify the difference between a procedure and a function SHOULD explain the need for parameters.
© red ©
My Penguin Math Book By:. I see How many penguins do you see? Count them & type the number in the box penguins.
Fix the black point You wil see the gray dissolving Clic for another illusion.
Microsoft Excel 2003 Illustrated Complete with Excel Programming.
Visual Basic Project 1 IDS 306 Spring 1999 V. Murphy.
SUNY Morrisville-Norwich Campus-Week 12 CITA 130 Advanced Computer Applications II Spring 2005 Prof. Tom Smith.
Adding Automated Functionality to Office Applications.
Contains 16,777,216 Colors. My Car is red My Car is red How do I add colors to my web page? Notepad Browser Works with the “Standard” colors: Red, Green,
MOLARITY AND DENSITY. Header ChemistryName Experiment #17Date __ Mods__ Molarity and DensityPartner.
Introduction to VBA. This is not Introduction to Excel We’re going to assume you have a basic level of familiarity with Excel If you don’t, or you need.
05/09/ Introducing Visual Basic Sequence Programming.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 11 1 Microsoft Office Access 2003 Tutorial 11 – Using and Writing Visual Basic for Applications.
Automating Tasks with Visual Basic. Introduction  When can’t find a readymade macro action that does the job you want, you can use Visual Basic code.
® Microsoft Access 2010 Tutorial 11 Using and Writing Visual Basic for Applications Code.
Visual Basic 101.
Visual Basic.NET BASICS Lesson 5 Exponentiation, Order of Operations, and Error Handling.
Standard Grade Programming using VB 1 Programming Visual Basic.
3.9 to  Also refer to as Program  Contains set of instructions that tells the computer how to perform specific task.  Each line of code is referred.
Sanjay Johal. Introduction(1.1) In this PowerPoint I will be explaining :  The purpose of the code for each of the two given programs, e.g. to carry.
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 5.1 Test-Driving the Inventory Application.
Chapter 4 Variables and constants. 4.1 Variables -Use of variables is good programming style -easier to modify -easier for a programmer to understand.
Connecting the Smart Board  Created in 1991, A Smart Board is an interactive whiteboard that provides a student-centered learning environment. Go!
Key Events in North America Colored Maps Color Key France = red Spain = yellow US = blue Great Britain (England) = green Mexico = purple.
Probability of Simple Events
MY IDENTIFICATION HOSNAYARA ASST. TEACHER MAJHIRA MODEL GOVT. PRIMARY SCHOOL SHAJAHANPUR, BOGRA. WELCOME EVERYBODY.
PART TWO Electronic Color & RGB values 1. Electronic Color Computer Monitors: Use light in 3 colors to create images on the screen Monitors use RED, GREEN,
CSC 230 (Blum)1 Visual Basic 2005 Hello World Fall 2005 T. Blum.
COMPREHENSIVE Access Tutorial 11 Using and Writing Visual Basic for Applications Code.
The Program Editor1 Visual Basic (VB) supports a text editor (not a word processor) that permits the writing and modification of program code. The editor.
Which fraction represents the probability of a spinner landing on a banana.
Programming Right from the Start with Visual Basic .NET 1/e
INTRODUCTION TO OBJECT-ORIENTED PROGRAMMING
Please begin your Warm Up on the board (Binary 1-5)
Name: Spelling: 3 x each 1-5 Math: Lesson 6 Problem Set 1-8
Functions and Procedures
Thinking Hats There are 6 Thinking Hats and they are used to help us focus and guide our thinking. INFORMATION HAT The white hat is used for information.
Computer Programming Methodology Luminance
Microsoft Access 2003 Illustrated Complete
Microsoft Access Illustrated
Microsoft Office Illustrated
Learning Excel Session 9 and 10 Dr. Chaitali Basu Mukherji.
Please use speaker notes for additional information!
Objectives Learn about Function procedures (functions), Sub procedures (subroutines), and modules Review and modify an existing subroutine in an event.
קורס פיננסי – מושגים פיננסיים / כלכליים
VISUAL BASIC.
Chapter 6 Sub Procedures
Name: _______________________________
Log onto a computer first then ….
Tonga Institute of Higher Education
Building an Application in the Visual Basic .NET Environment
Two ways to discuss color 1) Addition 2) Subtraction
Program Documentation
Chapter 7: Using Functions, Subs, and Modules
Project Design, Forms and Buttons
RACE.
Functions, Return Values, Parameters Getters and Setters
What Color is it?.
OPERATIONS WITH INTEGERS: ADD, SUBTRACT, MULTIPLY & DIVIDE.
Procedures: Functions and Subroutines
Microsoft Visual Basic 2005 BASICS
Lesson Objectives Aims Key Words
Chapter 8 - Functions and Functionality
Controls, Properties, and Procedures
Functions, Return Values, Parameters Getters and Setters
Color Box Button - Gray Type : object Type : object Type : object
Tutorial 11 Using and Writing Visual Basic for Applications Code
Programming Techniques
Presentation transcript:

Controls, Properties, and Procedures 090500

VB Coding Code colors Commenting Procedures (Subroutines and Functions) Objects: Controls

Code Colors Black – General coding, Objects Blue – Keywords Green - Other

Commenting Add comments (start line with an apostrophe) to EXPLAIN EVERY SECTION OF CODE. Comments are great ways to quickly hide unwanted code from the computer.

Procedures A procedure is a section of code that performs a specific task A subroutine is a procedure. Events call subroutines. Your program may also call a subroutine. A function is a procedure that returns a value. Subroutines that contain formulas that return values are functions.

Many Functions are Built-in Cint(MyNumber) Len(MyWord) Many Others

Calling Subroutines and Procedures Sub Procedure: Call MySubroutine() MySubroutine() Functions: MyCircumference=MyCircle(myRadius)

Objects: Controls Controls are objects. Objects have properties and procedures (called methods) associated with them. cmdButton1.Text = “My Button” lstColors.Items.Add “Red” A method is a procedure that acts on the object that calls it. Above, the list control called the Add method.

Review Control Procedure Function Subroutine Event Method Property