A useful thing to do to before starting your serious
coding is to declare all your variables in separate coding module. If
you have completed Assignment2parta
you will already have a convenient list of some of the variables you will
need. If not, make a list for yourself.
~~ Input Variables ~~
~~ Stored Data Variables ~~
~~ Output Variables ~~
It is likely you will need intermediate variables - used
temporarily to hold results, e.g.
~~ Misc Variables ~~
Before declaring your variables, you will need to add a
VB module to your Project.
Here are step by step instructions on how to declare your
variables. You are going to declare all your variables inside a separate
coding sheet called a module.
Module Coding Windows
If you have not added a module to your project already,
then on the VB menu, click Project, then Add
Module. A new white coding window should appear. You need to save
the separate module just like you save a form. Here is a picture
of my VB explorer window showing two forms (input and output) and
If you double-click the module you should get a white
coding window. In the coding window, declare your variables
Declare all your input, output and stored data variables in a VB module.
When you have declared your variables, click the save
to save your work.