
The code in Figure 5-7 sets up an array that can be repre-
sented by the following table:
Dog’s Name Dog Type
Shani Ridgeback
Peanut Rottweiler
Sasha Doberman
Displaying Information to the User
One of the best ways to interact with users (as well as visually
see what your code is doing without stepping through the
code) is through message boxes and input boxes. Message
boxes are a great way to display errors, tips, and other
information.
Message Boxes
The MsgBox function displays a message in the form of a dia-
log box, waits for the user to click a button, and returns an
integer indicating which button the user clicked. Following is
the syntax for the MsgBox ...