HP 3000 Manuals

JUSTIFY [ HP Data Entry and Forms Management System (VPLUS/V) ] MPE/iX 5.0 Documentation


HP Data Entry and Forms Management System (VPLUS/V)

JUSTIFY 

Used to move data within a field to the left or right boundary of the
field, or center it within the field.

Syntax 

       {LEFT  }
JUSTIFY{RIGHT }
       {CENTER}
Parameters 

LEFT             The data in the current field is shifted to the left.

RIGHT            The data in the current field is shifted to the right.

CENTER           The data in the current field is centered in the field.

Discussion 

The JUSTIFY statement can be used to format data entered into or moved to
any field.  (For automatic formatting, refer to the SET command earlier
in this section.)  As is true of all formatting statements, JUSTIFY has
an immediate effect on the data in the memory buffer; the formatted data
is then available for display or copying into the application.  When the
user enters data into a field for which formatting is specified, the data
is formatted as soon as ENTER or an appropriate function key is pressed.
Thus, FORMSPEC formatting is done before data is written to the data or
batch file.  (In contrast, reformatting through REFORMAT, described in
Section 5, is done after data is collected, edited, and written to the
batch file.)

Example 

       Statement                Data Entered                 After Formatting 

---------------------------------------------------------------------------------------

      JUSTIFY LEFT             [  SMITH    ]                   [SMITH      ]

     JUSTIFY RIGHT             [  SMITH    ]                   [      SMITH]

     JUSTIFY CENTER            [  SMITH    ]                   [   SMITH   ]

If the data cannot be centered exactly, the extra blank is on the right.



MPE/iX 5.0 Documentation