HP 3000 Manuals

Arguments [ HP ALLBASE/BRW Reference Manual ] MPE/iX 5.0 Documentation


HP ALLBASE/BRW Reference Manual

Arguments 

Arguments are the values used in a calculation.  Arguments include the
following:

   *   items, standard items, and array items

   *   functions and standard functions

   *   function arguments

   *   constants

   *   parameters

   *   column calculation results

   *   expressions

Priority of Arguments 

Items, array items, standard items, user-defined table or layout
functions, user-defined global functions, function arguments and standard
functions can have the same names.  If the same names occur in a report,
they are ranked in this order of priority:

------------------------------------------------------------------------------------------
|                                                                                        |
|         Rank                              Name, i.e., customer-no                      |
|                                                                                        |
------------------------------------------------------------------------------------------
|                                                                                        |
|           1           Aggregate Index (see Aggregate/Array Operations)                 |
|                                                                                        |
|           2           Function Argument                                                |
|                                                                                        |
|           3           Calculated Item                                                  |
|                                                                                        |
|           4           Item                                                             |
|                                                                                        |
|           5           Standard Item                                                    |
|                                                                                        |
------------------------------------------------------------------------------------------

If the same names occur and are followed by an open parenthesis, they are
ranked in this order:

------------------------------------------------------------------------------------------
|                                                                                        |
|         Rank                        Name (expression), i.e., turnover(4)               |
|                                                                                        |
------------------------------------------------------------------------------------------
|                                                                                        |
|           1           Function Argument                                                |
|                                                                                        |
|           2           Table or Layout Function                                         |
|                                                                                        |
|           3           Global Functions                                                 |
|                                                                                        |
|           4           Item                                                             |
|                                                                                        |
|           5           Standard Function                                                |
|                                                                                        |
------------------------------------------------------------------------------------------

For example, if DATE is the name of both a calculated item and a standard
item, it is used as a calculated item, which has the higher priority.
Or, if AMOUNT is the name of a function argument and a calculated item,
any reference to AMOUNT in the function's formula will be considered a
reference to the function argument AMOUNT.

Standard items and standard functions can be explicitly specified as
shown in this example:

      STANDARD.DATE

which is the standard item date.

Related Sections 

   *   Arrays and Array Items

   *   Aggregate/Array Operations

   *   Column Calculation Results

   *   Constants

   *   Functions

   *   Items

   *   Parameters

   *   Standard Items



MPE/iX 5.0 Documentation