Please use speaker notes for additional information!

Slides:



Advertisements
Similar presentations
Microsoft Excel. Click on “Start,” then “Microsoft Office Excel.”
Advertisements

Introduction to Microsoft Excel 2010 Chapter Extension 3.
Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.
Input Validation Check the values entered into a text box before beginning any calculations Validation is a form of ‘self-protection’, rejecting bad data.
Chapter 9 Macros, Navigation Forms, PivotTables, and PivotCharts
BTEc unit 12 software development
Microsoft Visual Basic 2005 CHAPTER 12 Cell Phone Applications and Web Services.
05/09/ Introducing Visual Basic Sequence Programming.
Hello World In C++ and Microsoft Visual C++. Directions to begin a project 1. Go to All Programs 2. Open Visual Studio C++ 3. Click on New Project 4.
Introduction to Visual Basic. Quick Links Windows Application Programming Event-Driven Application Becoming familiar with VB Control Objects Saving and.
06/10/ Working with Data. 206/10/2015 Learning Objectives Explain the circumstances when the following might be useful: Disabling buttons and.
Review for Mid-term! October 26, Review Homework Worksheet True or False Operators are symbols that perform specific operations in Visual Basic.
For Loops (ProjFor1, ProjFor2, ProjFor3, ProjFor4, textbox, textbox1) Please use speaker notes for additional information!
New Project in Visual Basic Please use speaker notes for additional information!
University of Sunderland CIF 104 Fundamentals of DatabasesUnit 16 SESSION 16 VBA example.
Using Decimal Types. What are the data types that you can use? Decimal Number: Single -Is used for decimal values that will not exceed six or seven digits.
Data Types and Variables. Data Type! Computers are all about Data! Data can be in the form of Text Dates Sounds Pictures.
Learning Targets:  Develop code blocks that use arithmetic operations  Develop programs that use subtotals and final totals 1.
1 Creating Windows GUIs with Visual Studio. 2 Creating the Project New Project Visual C++ Projects Windows Forms Application Give the Project a Name and.
1 Advanced Computer Programming Lab Calculator Project.
You should unzip and download the beginning programs.
Salary Calculator. Design a page like the following.
VAT Calculator program Controls Properties Code Results.
Pay Example (PFirst98) Please use speaker notes for additional information!
Lesson 4 Mathematical Operators! October 6, 2009.
Maximum Profit Please use speaker notes for additional information!
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
Slide 1 Controls v Control naming convention –Label: lblName –Command Button: cmdName –Text Box: txtName.
Sorry, the pen lost control. Anyway, you need to download both the.vbp and the.frm for each project. I looked at PrCalc, I did not look at inventory.
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,
Reading comprehension exercise using PowerPoint. Question Slides 1.Start a new PowerPoint presentation with 4 slides on it. 2.On Slides 2, insert the.
Visual Basic 6 Programming Decide how many variables you need by looking at this form. There is one textbox for input and there are 3 labels for output,
I am using Visual Basic 6 for this class. If you want to use a different version, please contact me. Thanks!
Murach’s Visual Basic 2008, C7, modified or added© 2008, Mike Murach & Associates, Inc. Slide 1.
Subroutines (PrArith, Math,projCP1, PrAdrProc, PrAdrProcFunc) Please use speaker notes for additional information!
Chapter 8 Multiple Forms, Modules, and Menus. Introduction This chapter demonstrates how to: – Add multiple forms to a project – Create a module to hold.
Computing and Information Technology Building a Web Browser
A variable is a name for a value stored in memory.
Bbc microbit Lesson 3 – Temperature hot medium.
Microsoft Excel.
Introduction to Programming and Visual Basic
Formatting a Worksheet
Using a set-up file to read ASCII data into SPSS
How to design a Windows Forms application
Word 2002 Chapter 7 MANIPULATING TABS.
Please use speaker notes for additional information!
Chapter 7 Advanced Form Techniques
In this class I am using Visual Basic 6 because it is easier to work with. If you want to use a different version please contact me. Thanks!
Department Array in Visual Basic
Visual Basic Programming Chapter Four Notes Working with Variables, Constants, Data Types, and Expressions GROUPBOX CONTROL The _____________________________________.
text box. I brought this up by double clicking on the command button.
and the properties. I named this lblName.
HOW TO CREATE A CLASS Steps:
Building an Application in the Visual Basic .NET Environment
This is where you can establish the name of the project and the address where it is stored - these are the defaults. If you do not enter anything, the.
Report using ADO connection
Visual Basic Numbers Chapter 3.3 Prepared By: Deborah 1/15/2019.
Visual Basic: Week 5 Review User defined functions
Environment/Report Tutorial
If statements (Inven1, Inven2, Inven2a, Inven3, Inven3a)
Using screens and adding two numbers - addda.cbl
Grauer and Barber Series Microsoft Access Chapter Two
More on If statements (Calculate, Calculate1, Calculate2)
Category 1 Category 2 Category 3 Category 4 Category
Spreadsheets and Data Management
Visual Basic Numbers Chapter 3.3 Prepared By: Deborah 7/9/2019.
This is an introduction to JavaScript using the examples found at the CIS17 website. In previous examples I specified language = Javascript, instead of.
Presentation transcript:

Please use speaker notes for additional information! Pay Project - Basic Please use speaker notes for additional information! This is a simple pay project. Note that in this project, I am covering information not covered in the first chapter in your text. You will need to read the slides carefully and use your text for reference.

ProjPay1 Note that the project is named TempPayProj but when it was saved it was saved a ProjPay1.vbp. Note that you save the project as a .vbp and the form as a .frm. I will show the pulldown on the next slide. In this example the name that I gave to the project is not the same as the name that I saved it as. Think before you do this because it can be hard to remember the name if it is named one thing and saved as something else.

frmPay1.frm This shows the naming of the form and the save that was done using the same name with the .frm extension. The form is named frmPay1. Note the background color that is specified for the form.

Form The label across the top is done in blue and other things are changed to Blue and to size 12.

Form This shows the pulldown menu giving the name of some of the Label and TestBoxes that are on the form. All of the labels and testboxes were set up with names and defined using mostly standard defaults. In the case of the labels the caption was changed and in the case of the testboxes the text was changed.

cmdCalc When the calculate button is pressed, the Pay is calculated by multiplying the pay per hour by the hours worked. Note that both are converted to Val prior to doing the calculation. Note also that I am using the .Text on all textbox fields. Since Text is the default property, it is not required. Val is used to make sure that the data is numeric. Val is a function that converts text to numeric. Note also that the exit button simply gives the command End.

Run I left the code on the screen so that it shows what happens when the calculate button is clicked. This time I did Run and then clicked the Calculate button. Note that I had entered social security number, name, pay per hour and hours. Because I clicked the Calculate button, Pay was calculated and placed in txtPay.text.

ProjPay2 In this example, I defined work areas as wrkPayHr, wrkHours and wrkPay. Note that this is done with the Dim statement which names the field and gives each a type. In this case, I selected Single which allows for basic decimal places. Please look up the definition of single in the textbook or help. I then assigned the payper hour and the hours worked to the work areas that I defined. This takes the data that was entered into the text boxes and puts the data into work areas. I then did the calculation of multiplying them together and stored the answer in the work area. I then displayed the pay per hour and the calculated pay in the boxes using the currency format. Note that the place to display is on the left and the calculation to format the work area as currency is placed on the right. The assignment sign takes what is on the right and assigns it to the field on the left. The Format command can take data and format it using one of the Visual Basic formatting styles. In this case I am saying Format wrkPayHr as currency and store it in txtPayHr.Text. I am also saying Format wrkPay as currency and store it in txtPay.Text. The results will be leading dollar signs and commas if needed.

This is the data entry prior to clicking Calculate. Run This is the data entry prior to clicking Calculate. Below is the data after Calculate is clicked. When the Calculate button is pressed the data is stored in the work areas using the commands wrkPayHr = Val(txtPayHr.Text) and wrkHours = Val(txtHours.Text). Then the calculation is done by the command wrkPay = wrkPayHr * wrkHours. Note that the calculate works exculsively with work areas in this eample. Finally the formatting is done and the results are displayed. You can see that txtPayHr.Text and txtPay.Text both contain data that was formatted as currency.