next up previous
Next: 5. IF/THEN/ELSE (and End) Up: VisualBasic Previous: 3. Some mathematics (and

4. Saving your VisualBasic Programme

We have now done a fair bit of typing and would like to save our work somehow so that we can come back to it later on. This section describes how this is done.

Open up a VisualBasic programme, for instance the one which calculated the quadratic solution from the previous section. If you don't have one to hand, try this old one.

Now go to the File Menu (top left of screen) and select Save XXXX.FRM As ... (where XXXX is the name of your form file - probably Form1). Click on this option, and choose some directory to save your file, e.g. the C: drive. Once this form file is saved, you can load this form file by simply double-clicking on its icon.

You can set up your VisualBasic so that these saves are automatically performed every time you run your programme. Simply go to the Tool menu item, then choose Options, and then in the Environment tab, check the box labelled Prompt to Save Changes.

Note that unfortunately, even if you are on an Open Access PC, VisualBasic may not be able to see your P: drive. However, you can still save your form file to C: and then use "My Computer" (or Windows Explorer) to copy it to your P: drive which is in the Network Drives section of "My Computer".

Obviously it is crucial to make a backup copy of your programme as well.

You may be wondering about the Save Project options under the File menu. This is something you'll never need to do unless you start writing very complicated VisualBasic programmes. When you come to submitting your solutions for your continuous assessment, you need only ever submit your Form file.

You can save your VisualBasic Programme by saving the FORM file. You do this using the File menu item and selecting the Save XXXX.FRM option.


next up previous
Next: 5. IF/THEN/ELSE (and End) Up: VisualBasic Previous: 3. Some mathematics (and
Chris Allton 2006-10-27