|Notice: this course covers
the older Visual Basic 6.0 programming application. Microsoft no
longer sells VB6. If you want to learn VB6, you'll have to find a used
copy somewhere like eBay or Craigslist. We will be updating this course
for use with Visual Basic 2013 soon. If you've purchased this
course within the last year, you'll get a free upgrade when it's
This course picks up where VB101
left off. We will expand upon many of the topics and techniques we
learned about in that class. First, we will begin by learning more about
the IF / THEN statement, to include ELSEIF and ELSE
Next, we will learn how to prompt the user to enter in data, by
using the InputBox function.
We will also learn how to let the
user select an option from a list of available data, by means of the
Combo Box control.
We will build a couple of simple math quiz
programs to sharpen our math skills. The first will be a simple program
to have the computer give us two numbers, and we have to add them up and
give the right answer. The second program will help us to sharpen our
These programs will teach us how to use and
declare variables, how to generate random numbers, and how to
generate sequential numbers using a FOR / NEXT loop. We will also
learn how to properly document our code with comments.
In our next lesson, we'll have some fun by
creating an Image Viewer using the Image control. A user will be
able to specify a filename, click on a Load button, and watch their
image loaded into your VB program.
After that, we will build a simple
loan calculator, where you can enter in the amount of a loan (such
as a home mortgage), the number of months, and the interest rate, and
your program will calculate the monthly payment amount. This lesson will
teach us how to use the PMT function. We'll also learn about the
line continuation character.
This course is a good course to follow VB101
with. We cover many fundamental aspects of the VB language, and we will
continue to build on these skills in VB103.