Research the Visual Basic ReDim statement. What is the purpose of the statement? What is the purpose
Question:
Research the Visual Basic ReDim statement. What is the purpose of the statement? What is the purpose of the Preserve keyword?
a. Open the VB2015\Chap09\ReDim Solution\ReDim Solution (ReDim Solution.sln) file. Open the Code Editor window and locate the btnDisplay_Click procedure. Study the existing code, and then modify the procedure so that it stores any number of sales amounts in the intSales array.
b. Save the solution and then start the application. Click the Display Sales button and then enter the following sales amounts, one at a time: 700, 550, and 800. Click the Cancel button in the input box. The three sales amounts should appear in the list box.
c. Click the Display Sales button again and then enter the following sales amounts, one at a time: 5, 9, 45, 67, 8, and 0. Click the Cancel button in the input box. This time, six sales amounts should appear in the list box. Close the Code Editor window and then close the solution.
Step by Step Answer: