Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

LABEL Attribute

Status
Not open for further replies.

gregor weertman

Programmer
Sep 29, 2000
195
NL
I have a problem with the label widget.

I defined a frame:

FORM
Vvar Column-label "XX!YY"
With fram fff.


Output:
XX
YY
--
11
33
22



Now I change the LABEL
Like:
vvar:label = "AA!BB".

Now I get:
AA!BB
YY
-----
11
33
22

Is the label widget something like a array or structure?
What is the right way to change the label?

Gregor.Weertman@mailcity.com
 
From Progress' KB (Kbase Id:
18758

Title:
How-To: Dynamically set COLUMN-LABEL (Option)

Creation:
16-Apr-1999

Modified:
19-Oct-1999



How-To: Dynamically set COLUMN-LABEL (Option)

Title: How-To: Dynamically set COLUMN-LABEL (Option)

Summary: This Kbase applies to the Version 8.3A Column-Label
option. This is to properly document the fact that the Column-Label
option is not an attribute of a field or variable but an option of
the format phrase. And to describe ways that this can be
dynamically set in a DEFINE, DISPLAY or UPDATE statement.

Step by step details:

/* Using the Define Statement */
DEFINE VARIABLE v_text AS CHARACTER FORMAT "x(12)"
COLUMN-LABEL "Progress!Software"
INITIAL "Incorporated".
DISPLAY v_text WITH DOWN.

/* Using the Display Statement */
DEFINE VARIABLE v_text AS CHARACTER FORMAT "x(12)"
INITIAL "Incorporated".
DISPLAY v_text COLUMN-LABEL "Progress!Software" WITH DOWN.

/* Using the Update Statement (Same as Display) */
DEFINE VARIABLE v_text AS CHARACTER FORMAT "x(12)"
INITIAL "Incorporated".
UPDATE v_text COLUMN-LABEL "Progress!Software" WITH DOWN.

Further to this you may set the Label "Attribute" and if no
Column-Label is defined, the Label will be displayed at the Column
Label. The advantage most people find with this option is that this
can be set from a Field or Variable value. The drawbacks are that
you cannot stack labels with this attribute,
and the field or
variable must be defined in a frame and displayed with that frame
for this to work. The following code demonstrates this:

/* Assigning Label from a Variable */
DEFINE VARIABLE v_text AS CHARACTER FORMAT "x(12)"
INITIAL "Software".
DEFINE VARIABLE v_label AS CHARACTER FORMAT "x(12)"
INITIAL "Progress".

DEFINE FRAME dwn_frm v_text WITH DOWN.

ASSIGN v_text:LABEL = v_label.

DISPLAY v_text WITH FRAME dwn_frm.


Progress Software Technical Support Note # 18758
Hope this helps,
Jessica
[ponytails2]
 
it is not what I wanted to hear but it is helpfull.


thank you. Gregor.Weertman@mailcity.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top