Assignment 4
Home Up

ASCII table

  1. Using the database Properties in the Unit 2 folder, you created in Lesson 1 in the DPS folder. Create a new form, do not attach a database to it.
  2. Change the Caption of the form to display, Lesson 4 - Variables
  3. Turn Record Selectors, Navigation Buttons and Dividing Lines to No
  4. Turn Auto Centre to Yes.
  5. Change the Width to 5.5 inches.
  6. Change Scroll Bars to none
  7. Save the form with the Name of Lesson4Variables.
  8. Create the following objects. Ther are two Textboxes, five Command buttons and one Label:

wpe3.jpg (26113 bytes)

  1. Remember to give all the objects, that you are going to call in code, an appropriate Name.
  2. Create a program that will allow the user to enter two values into the textboxes.
  3. Then, depending on which of the four operational buttons are clicked, will perform the calculation and store the result in a variable. And then display the answer in the label at the bottom of the form.
  4. When the user clicks on the Quit button the form will close.

For example: If the user was to enter a 3 and 4 in the text boxes and then clicks on the "+" button, the Label will display the string Answer: 7.

wpe4.jpg (9646 bytes)