Consultor Eletrônico



Kbase P21394: Why, when and how is the SIDE-LABEL used in a FRAME phrase t
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   21/11/2003
Status: Unverified

GOAL:

Why, when and how is the SIDE-LABEL used in a FRAME phrase truncated?

FIX:

If the FRAME phrase code looks like:

WITH FRAME FrameName DOWN WIDTH 132 SIDE-LABELS 2 COLUMNS.

then the side labels will be truncated because the 'n COLUMNS' option causes SIDE-LABELS to truncate.

The ·Progress Language Reference·, in the explanation of the ·n COLUMN· options of the ·Frame Phrase· states:

·
n COLUMNS
Formats data fields into a specific number (n) of columns. Truncates labels to
16, 14, and 12 characters when the number of columns is 1, 2, or 3,
respectively. Progress reserves a fixed number of positions in each column for
labels. For n = 1, 16 positions are allowed for a label; for n = 2, 14 positions
are allowed; and for n = 3, 12 positions are allowed. Label positions include
room for a colon and a space after the label. Labels are right justified if they
are short, and truncated if they are too long. By default, Progress wraps fields
across the frame for as many lines as required, placing labels above the
fields.
When you use this option, it implies SIDE-LABELS and overrides any AT, COLON,
TO, or SPACE options you might have used in the same Frame phrase.
·

Since the code:

WITH FRAME FrameName DOWN WIDTH 132 SIDE-LABELS 2 COLUMNS.

Includes the 'n COLUMNS' option, it follows that our SIDE-LABELS will be truncated as per the above formula.

A solution is to replace the "n COLUMNS" option with the "STREAM-IO" option:

WITH FRAME FrameName DOWN WIDTH 132 SIDE-LABELS STREAM-IO.

This will allow Progress to output the full length of the SIDE-LABEL.

For more positioning control, use the ·AT· phrase of the FRAME phrase:

FORM
customer.Cust-Num AT 1
customer.NAME AT 50
WITH FRAME FrameName DOWN WIDTH 132 SIDE-LABELS STREAM-IO.