ACCUM aggregate expressionFOR is one of the statements that can end with either a period or a colon, as in this example:
FOR EACH Customer NO-LOCK:DISPLAY Customer.Name.END.
DISPLAY STREAM stream UNLESS-HIDDEN NO-ERRORIn this example, the outer (small) brackets are part of the language, and the inner (large) brackets denote an optional item:
INITIAL [ constant , constant ]A called external procedure must use braces when referencing compile-time arguments passed by a calling procedure, as shown in this example:
{ &argument-name }
PRESELECT EACH FIRST LAST record-phraseIn this example, you must include two expressions, and optionally you can include more. Multiple expressions are separated by commas:
MAXIMUM ( expression , expression , expression )In this example, you must specify MESSAGE and at least one expression or SKIP (n) , and any number of additional expression or SKIP ( n ) is allowed:
MESSAGE expression SKIP ( n )In this example, you must specify {include-file, then optionally any number of argument or &argument-name = "argument-value", and then terminate with }:
{ include-file
argument &argument-name = "argument-value" }Some syntax descriptions are too long to fit on one line. When syntax descriptions are split across multiple lines, groups of optional and groups of required items are kept together in the required order.In this example, WITH is followed by six optional items:
WITH ACCUM max-length expression DOWN
CENTERED n COLUMNS SIDE-LABELS STREAM-IOComplex syntax descriptions with both required and optional elementsSome syntax descriptions are too complex to distinguish required and optional elements by bracketing only the optional elements. For such syntax, the descriptions include both braces (for required elements) and brackets (for optional elements).In this example, ASSIGN requires either one or more field entries or one record. Options available with field or record are grouped with braces and brackets:
ASSIGN FRAME frame field = expression WHEN expression record EXCEPT field
© 2013 Progress Software Corporation and/or its subsidiaries or affiliates. |