Programming Basics

Learn common programming practice and logic structures in Visual Basic

The If Statement
The If Statement’s Else Branch
Compound Comparisons with the Logical Operators
Multiple Choice with Select Case
The For Loop
The Other Do Loops
The Do Until Loop
The Do While Loops
Structured Programming
Calling Procedures and Returning from Them
Coding Subroutines
Coding Functions
Coding Arguments
Types of Variables
Variable Declarations
Creating Your Own Constants
Variable Arrays
Understanding Classes
The Open Statement
Learning the File Modes
Restricting Access
Locking the File
Managing the Record Length
Locating a Free File Number
Specifying the Close Statement
An Early Exit
Selecting with Select Case
The Object Class
The System Objects
Object and Control Arrays