Progress
Language Reference


/* Comments */

Interfaces
OS
SpeedScript
All
All
Yes

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

SYNTAX

/* comment */ 

comment

Descriptive text.

NOTE: Comments may 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.

NOTE

You can nest comments.


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