Kbase P47388: How To Right Justify Numeric/Decimal Fields In UIB
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/10/2003 |
|
Status: Unverified
GOAL:
How To Right Justify Numeric/Decimal Fields In UIB
CAUSE:
The Numeric fields left justify with side-labels; which is normally the default for fill-in fields in UIB.
FIX:
In this case, the side-labels will have to be turned off and labels will have to be created manually either by using TEXT fields or FILL-INs with VIEW-AS TEXT option.
1. Before adding fields in the frame
In the FRAME PROPERTY sheet :
a. CLICK DOWN
b. CLICK NO-LABELS
c. CLICK OFF SIDE-LABELS.
2. Create the numeric/decimal fields
If these fileds are to be aligned vertically and you want the
decimals OR the numeric data to align, all fields
MUST HAVE EXACTLY THE SAME FORMAT.
e.g.
ITEM-1 PRICE : ">>,>>9.99"
ITEM-2 PRICE : ">>,>>9.99"
will align regardless of the value entered.
ITEM-1 PRICE : ">>,>>9.99"
ITEM-2 PRICE : ">>9.99"
will NOT align, though the fields will right-justify.
3. Create the labels manually. For vertical alignment - FILL-INs with
VIEW-AS TEXT are better than TEXT FIELDS.
IMPORTANT
---------
1. FIXED FONTS MUST BE USED TO RIGHT JUSTIFY/ALIGN INTEGER AND DECIMAL FIELDS.
2. THE DATA WILL RIGHT JUSTIFY BASED ON THE FORMAT OF THE FIELD AND
NOT ON THE SIZE OF THE VIEWPORT. e.g. A format of ">>9.99" may not
appear to be right justified in a very large viewport that can
accomodate say a format of ">>>,>>>,>>9.99".