In this exercise, you experiment with the TryParse method using different data types and values.

a. Open the FigureThisOut Solution (FigureThisOut Solution.sln) file contained in the ClearlyVB2012Chap06FigureThisOut Solution folder. Open the Code Editor window and review the code.

b. Start the application. Enter the number 34 in the Number box and then click the Convert button. The three TryParse methods in the button’s Click event procedure convert the contents of the txtNum control to a number. The procedure then displays the results in the three label controls.

c. Enter the values listed in Figure 6-18, one at a time, clicking the Convert button after each entry. On a piece of paper, record the result of each TryParse method’s conversion.

d. Close the Code Editor window and then close the solution.

Open the SwatTheBugs Solution (SwatTheBugs Solution.sln) file contained in the ClearlyVB2012Chap06SwatTheBugs Solution folder. Review the existing code. Start and then test the application. Notice that the code is not working correctly. Locate and correct any errors.

"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
Looking for a Similar Assignment? Our Experts can help. Use the coupon code SAVE30 to get your first order at 30% off!