| |
| |
| |
Introducing Visual Basic | |
| |
| |
| |
What is Visual Basic? | |
| |
| |
| |
Events and Event Procedures | |
| |
| |
| |
Object-Related Concepts | |
| |
| |
| |
The Visual Basic Program Development Process | |
| |
| |
| |
Required Computer Skills | |
| |
| |
| |
Logical Program Organization | |
| |
| |
| |
Visual Basic Program Components | |
| |
| |
| |
The Visual Basic Environment | |
| |
| |
| |
Opening an Existing Visual Basic Project | |
| |
| |
| |
Saving a Visual Basic Project | |
| |
| |
| |
Running a Visual Basic Project | |
| |
| |
| |
Getting Help | |
| |
| |
| |
A Sample Visual Basic Project | |
| |
| |
| |
Visual Basic Fundamentals | |
| |
| |
| |
Numeric Constants | |
| |
| |
| |
String Constants | |
| |
| |
| |
Variables | |
| |
| |
| |
Data Types and Data Declarations | |
| |
| |
| |
Operators and Expressions | |
| |
| |
| |
Hierarchy of Operations | |
| |
| |
| |
Inserting Parentheses | |
| |
| |
| |
Special Rules Concerning Numeric Expressions | |
| |
| |
| |
String Expressions | |
| |
| |
| |
Assigning Values to Variables | |
| |
| |
| |
Displaying Output--The Print Statement | |
| |
| |
| |
Library Functions | |
| |
| |
| |
Program Comments | |
| |
| |
| |
Branching and Looping | |
| |
| |
| |
Relational Operators and Logical Expressions | |
| |
| |
| |
Logical Operators | |
| |
| |
| |
Branching with the If-Then Block | |
| |
| |
| |
Branching with If-Then-Else Blocks | |
| |
| |
| |
Selection: Select Case | |
| |
| |
| |
Looping with For-Next | |
| |
| |
| |
Looping with Do-Loop | |
| |
| |
| |
Looping with While-Wend | |
| |
| |
| |
The Stop Statement | |
| |
| |
| |
Visual Basic Control Fundamentals | |
| |
| |
| |
Visual Basic Control Tools | |
| |
| |
| |
Control Tool Categories | |
| |
| |
| |
Working with Controls | |
| |
| |
| |
Naming Forms and Controls | |
| |
| |
| |
Assigning Property Values to Forms and Controls | |
| |
| |
| |
Executing Commands (Event Procedures and Command Buttons) | |
| |
| |
| |
Displaying Output Data (Labels and Text Boxes) | |
| |
| |
| |
Entering Input Data (Text Boxes) | |
| |
| |
| |
Selecting Multiple Features (Check Boxes) | |
| |
| |
| |
Selecting Exclusive Alternatives (Option Buttons and Frames) | |
| |
| |
| |
Selecting from a List (List Boxes and Combo Boxes) | |
| |
| |
| |
Assigning Properties Collectively (The With Block) | |
| |
| |
| |
Generating Error Messages (The MsgBox Function) | |
| |
| |
| |
Creating Timed Events (The Timer Control) | |
| |
| |
| |
Scroll Bars | |
| |
| |
| |
Menus and Dialog Boxes | |
| |
| |
| |
Building Drop-Down Menus | |
| |
| |
| |
Accessing a Menu from the Keyboard | |
| |
| |
| |
Menu Enhancements | |
| |
| |
| |
Submenus | |
| |
| |
| |
Pop-Up Menus | |
| |
| |
| |
Dialog Boxes | |
| |
| |
| |
More about the MsgBox Function | |
| |
| |
| |
The InputBox Function | |
| |
| |
| |
Executing and Debugging a New Project | |
| |
| |
| |
Syntactic Errors | |
| |
| |
| |
Logical Errors | |
| |
| |
| |
Setting Breakpoints | |
| |
| |
| |
Defining Watch Values | |
| |
| |
| |
Stepping through a Program | |
| |
| |
| |
User-Induced Errors | |
| |
| |
| |
Error Handlers | |
| |
| |
| |
Generating a Stand-Alone Executable Program | |
| |
| |
| |
Procedures | |
| |
| |
| |
Modules and Procedures | |
| |
| |
| |
Sub Procedures (Subroutines) | |
| |
| |
| |
Event Procedures | |
| |
| |
| |
Function Procedures | |
| |
| |
| |
Scope | |
| |
| |
| |
Optional Arguments | |
| |
| |
| |
Arrays | |
| |
| |
| |
Array Characteristics | |
| |
| |
| |
Array Declarations | |
| |
| |
| |
Processing Array Elements (Subscripted Variables) | |
| |
| |
| |
Passing Arrays to Procedures | |
| |
| |
| |
Dynamic Arrays | |
| |
| |
| |
Array-Related Functions | |
| |
| |
| |
Control Arrays | |
| |
| |
| |
Looping with For Each-Next | |
| |
| |
| |
Data Files | |
| |
| |
| |
Data File Characteristics | |
| |
| |
| |
Accessing and Saving a File in Visual Basic: The Common Dialog Control | |
| |
| |
| |
Processing a Data File | |
| |
| |
| |
Sequential Data Files (Text Files) | |
| |
| |
| |
Random Access (Direct) Data Files | |
| |
| |
| |
Binary Files | |
| |
| |
| |
The ASCII Character Set | |
| |
| |
| |
Incompatibilities with Visual Basic.NET | |
| |
| |
Answers to Selected Problems | |
| |
| |
Index | |