Visual Basic
Unit 9 Programs

Text Files

Objective: Store and input data to a text file.

Text File Project

Create a form which will hold the data in text files and calculated values in lables. Use command buttons to save, load and clear the data from the form. Use a filename such as 09xxxtext.frm.

  1. Display text boxes to enter the item #, description, quantity and cost for three (3) items. Display a label box which will display the value of each item when either the cost or quantity is changed. Use a label box to find a grand total of all items in the inventory.
  2. Use one command button to write the information in text boxes to the drive.
  3. Use a second command button to load the data and store the item #, description, quantity and cost to the appropriate text box on the form.
  4. Use a command button to clear the text boxes.
  5. Use a command button to print the information in columns to the printer.
  6. Be sure to use dollar format where appropriate.

    Anytime the cost or quantity change, all the item total and grand total fields should automatically adjust. The user should be able to save/recall the data from a text file at anytime.

 

Visual Basic Assignment Page

 
51915

 

 
© 2004-2008, Jerel L. Welker
Page Updated: January 15, 2009