Consultor Eletrônico



Kbase P12444: 4GL/ABL: How to assign the COLUMN-LABEL attribute for a field in a frame?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   3/3/2009
Status: Verified

GOAL:

4GL/ABL: How to assign the COLUMN-LABEL attribute for a field in a frame?

GOAL:

Can the COLUMN-LABEL attribute be assigned the value of a CHARACTER field or a CHARACTER VARIABLE at runtime?

FACT(s) (Environment):

All Supported Operating Systems
OpenEdge 10.x
Progress 8.x
Progress 9.x

FIX:

The COLUMN-LABEL option may be set to a quoted string using the DEFINE VARIABLE statement, DISPLAY statement or the UPDATE statement as per the following examples:

/* DEFINE VARIABLE statement */
DEFINE VARIABLE cVariable AS CHARACTER COLUMN-LABEL "Progress!Software".
/* DISPLAY statement */
DEFINE VARIABLE iVariable AS INTEGER NO-UNDO.
DISPLAY iVariable COLUMN-LABEL "Integer Variable".
/* UPDATE statement */
DEFINE VARIABLE dVariable AS DATE NO-UNDO.
UPDATE dVariable COLUMN-LABEL "Date Variable".
No, unlike the LABEL attribute of a frame field which may be assigned the value of a CHARACTER field or a CHARACTER VARIABLE at runtime, the value of the COLUMN-LABEL option must be explicitly set to a quoted string.