Previous Next

/* Comments */
Allows you to add explanatory text to a procedure between the /* and */ characters.
Syntax 
 
/* comment */
comment
Descriptive text.
Note:
Examples 
The r-comm.p example uses comments to document the history of procedure modifications.
 
/* 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.
 
/* 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.

Previous Next
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates.