Lesson 4: Creating Simple Procedures
In this lesson, you will learn how to create simple Progress procedures to access and display information from the database.
Upon completion of this lesson, you will be familiar with the following topics:
|
•
|
Using DISPLAY statements to display expressions
|
|
•
|
Using FOR EACH statements to retrieve records for a table and NO-LOCK to read records without locking them
|
|
•
|
Using the MESSAGE statement to display messages
|
|
•
|
Using the PAUSE statement
|
|
•
|
Using the OUTPUT statement to direct reports to a printer, terminal, or file and manage multiple streams
|
|
•
|
Using the EXPORT, PUT, and IMPORT statements
|
Conventions for Progress Syntax in Class
To highlight Progress syntax, the following conventions are used in the examples in this course:
|
•
|
Progress keywords are shown in upper case for emphasis in the code. However, Progress is not case sensitive. The QAD standard in source code is to use all lower case.
|
|
•
|
Table and field names are shown in lower case.
|
|
•
|
Character strings are surrounded by quotes (" ").
|
|
•
|
Square Brackets ([]) indicate optional items.
|
|
•
|
Ellipses (…) indicate an item may be repeated.
|