PreviousNextIndex

/* Comments */

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

Syntax

/* comment */ 

comment
Examples

The r-comm.p 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 NO-LOCK: 
  DISPLAY Customer.CustNum Customer.Name Customer.Contact Customer.Phone. 
END. 

The r-comm2.p example uses comments to describe what the procedure does.

r-comm2.p
/* Ctep through unshipped orders */ 
FOR EACH Order NO-LOCK WHERE Order.ShipDate = ?: 
  /* Display order date, promise date, terms */ 
  DISPLAY Order.OrderDate Order.PromiseDate Order.Terms. 
  /* 
    FOR EACH OrderLine OF Order NO-LOCK: 
      /* Display all OrderLines of each Order */ 
      DISPLAY OrderLine. 
    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, ABL correctly processes any comments already in the bypassed code.


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex