Submitted by: Submitted by iloveyoucute
Views: 216
Words: 8830
Pages: 36
Category: Literature
Date Submitted: 09/04/2012 08:28 AM
123
Programming with…
Visual Basic
Table of Contents
Variables 3
Variable Data Types 3
The Visual Basic opening screen 4
What are Labels? 5
What are Text Boxes? 6
What are Form Properties? 7
Project 1 VB is Fun 8
How to start a new project 8
How to create a Label 8
How to create a Command Button 8
How to write code 9
Saving a Visual Basic Program 10
Project The Personal Computer 11
How to create a Label 11
How to place graphic images on the form 11
How to use Copy to add two more command buttons 11
How to write code behind the buttons to move the pointer when you click any of the three buttons. 12
How to run your program to see if it all works 12
Structure Diagrams 13
Background 13
Sequence 13
Exercises 13
Project Simple Addition 14
How to create a Label 14
How to select the TextBox tool from the tool box. 15
Converting Celsius to Fahrenheit 16
Making the conversion program respond to the Enter key rather than the command button 16
Making the program more versatile 17
Formatting numbers 18
Selections and Decisions 19
Loops 20
For… Next loop 20
Positive step of one from a given number 20
Displays 1 2 3 4 5 6 20
Negative step of minus one from a given number 20
Displays 6 5 4 3 2 1 21
Positive step of plus two from a given number 21
Displays 0 2 4 6 8 10 21
Project … Exploring loops 21
Problems 22
Strings – String Functions 22
Simple programs to illustrate string functions 23
Project …Reversing a string 23
Project …Joining Strings – Concatenation 25
Project … Splitting Strings 26
Project …Word Counter 27
Visual Basic – Arrays 28
General Area 28
Printing out data from an array 29
Printing the data in reverse order 29
Carrying out a simple sequential search 29
Sorting data in an array 30
Diagram to show Sorting 31
What is Visual...