HP 3000 Manuals

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


HP ALLBASE/BRW Reference Manual

Constants as Arguments 

Constants are arguments that have fixed values in calculations.
Constants can be of any HP ALLBASE/BRW type (Real, Numeric, Integer,
String, Date, or Time).

Consider the following examples:

   *   Numeric constants such as 5.68, -3.14;

   *   Integer constants such as 0, 45, -2134;

   *   Real constants such as 3.45E2.  But see the explanation of Real
       syntax under Real numbers in the "Numbers" section in this
       chapter.

   *   String constants, which consist of text enclosed in double quote
       marks:

            "I like HP Business Report Writer"

   *   Date constants, which require single quote marks and use these
       conventions, assuming the input format is month-day-year:

-------------------------------------------------------------------------------------------
|                                                                                         |
| '4/16/1992'                    <<April 16, 1992>>                                       |
|                                                                                         |
| '4.16.1992'                    <<same>>                                                 |
|                                                                                         |
| '8/24/93'                      <<year is 1993>>                                         |
|                                                                                         |
| '10/18/03'                     <<year is 1903>>                                         |
|                                                                                         |
| '12/6'                         <<year is current year>>                                 |
|                                                                                         |
| '12/92'                        <<invalid>>                                              |
|                                                                                         |
-------------------------------------------------------------------------------------------

       Date input format is defined in BRWSETUP. The alternative formats
       are day-month-year or year-month-day.  See also the "Dates"
       section of this chapter.

   *   Time constants, which require colon(s) and use these conventions:

-------------------------------------------------------------------------------------------
|                                                                                         |
| 8:24:37                        <<8 o'clock, 24 minutes, 37 seconds>>                    |
|                                                                                         |
| 10:4                           <<4 minutes past 10 o'clock>>                            |
|                                                                                         |
| 0:14:50                        <<14 minutes and 50 seconds>>                            |
|                                                                                         |
| 00:00:00 or 0:0                <<midnight >>                                            |
|                                                                                         |
| 23:59:59                       <<one second before midnight>>                           |
|                                                                                         |
| 24:00                          <<invalid>>                                              |
|                                                                                         |
-------------------------------------------------------------------------------------------

Related Sections 

   *   Arguments
   *   Calculations
   *   Dates
   *   Numbers
   *   Strings
   *   Time



MPE/iX 5.0 Documentation