Release 10.1A: OpenEdge Development:
Progress 4GL Reference

> ## /* Comments */

> Allows you to add explanatory text to a procedure between the /* and */ characters.

> #### Syntax

>     /* comment */

> ``comment``

> Descriptive text.

> Note: Comments can be nested.

> Examples

> This example uses comments to document the history of procedure modifications:

> r-comm.p
>     /* Procedure written  9/5/87 by CHC
>                  revised  9/27/87 by DG */

>     FOR EACH customer:
>         DISPLAY cust-num name contact phone.
>     END.

> The following example uses comments to describe what the procedure does:

> r-comm2.p
>     /* step through unshipped orders */
>     FOR EACH order WHERE ship-date = ?:
>       /* display order date, promise date, terms */
>       DISPLAY order-date promise-date terms.
>       /*
>         FOR EACH order-line OF order:
>           /* display all order-lines of each order */
>           DISPLAY order-line.
>         END.
>       */
>     END.

> The comment symbols that enclose the inner FOR EACH block turn that block into a comment for testing purposes. Since you can nest comments, Progress correctly processes any comments already in the bypassed code.

Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095