Prism 6.0 User's Guide

Printing and Displaying From the Events Menu

You can use the Events menu to define a print or display event that is to take place at a specified location in the program.

The Print dialog box (see Figure 5-2) prompts for the variable or expression whose value(s) are to be printed, the program location at which the printing is to take place, and the name of the window in which the value(s) are to be displayed.

Figure 5-2 Print Dialog Box

Graphic

Window names are dedicated, snapshot, and command; you can also make up your own name. The default is dedicated. See " Redirecting Output" for a discussion of these names.

When you have filled in the fields, click on OK; the event is added to the Event Table. When the location is reached in the program, the value(s) of the expression or variable are printed.

The Display dialog box is similar, but it does not prompt for a location; the display visualizer will update every time the program stops execution.