This section takes you on a tour of the PowerCOBOL debugging environment. For the purposes of this section the sample
"Hello" application discussed in the first part of Chapter 3 will be referenced.
The "Hello" application consists of a single window with a simple text display control with an initial value of "Begin" and a single push button that is labeled "Hello". When the user clicks on the push button, the text string "Begin" is changed to "Hello" in the text control.
For the purposes of this chapter, the event procedure code for a user clicking on the push button (CmCommand1) has been enhanced as follows:
The above noted enhancement now keeps track of the number of times a user clicks on the Hello push button. It then displays a message in the text control of "Hello n Times" where "n" represents the number of times the user has clicked the Hello push button.