Running the Heading Program

Having successfully compiled your program, you can run it from the QA Build menu by selecting the Run program option.

1. Specify the database as SALESORD and press <Enter>.

2. Enter MYPROG1 as the name of the program and press <Enter>. Alternatively press <Ctrl + P> for a menu of programs present and double-click on MYPROG1.

It may appear that nothing happens or you may get a brief glimpse of something that immediately disappears, depending on the speed of your computer system. Almost certainly your program has run quite correctly, but when a QA Build program ends, the screen clears. So the program correctly displayed your heading, but because it ended immediately afterwards, the screen cleared before you had a chance to see your creation. In the next lesson we overcome this problem by adding another procedure to the program which forces it to wait for a click on a mouse button or a keypress before ending. Your header will then remain on screen as long as you wish, until you end the program by clicking on the button.