Right-align a Column-label

Skc

Member
I have a procedure that displays information on the screen in a down frame. One of the field is a decimal field which column-label can change. Codes as follows:-

IF mappamt:LABEL BEGINS "Debit" THEN
temprec.mp-amount:LABEL = " Debit".
ELSE
temprec.mp-amount:LABEL = " Credit".

Padding with leading space in GUI does not align the column-label properly to the right unless thru trial and error. Is there a better way to get it properly right-aligned? Tried temprec.mp-amount:LABEL:R15 = "Debit" gives compile error.

Thanks for any clue.
Skc
 
Hullo Chris

Tried. Can compile but gives error at runtime:-
"Column-label is not a settable attribute for fill-in mp-amount"

Too bad otherwise it would be an easy solution.

Thanks anyway.
 
As an alternative but less elegant solution:

Make the field no-label and display a text field with the appropriate value in it at the position where the label should be.
 
Code:
IF mappamt:LABEL BEGINS "Debit" THEN
    ASSIGN temprec.mp-amount:LABEL = "Debit":R15.
ELSE
    ASSIGN temprec.mp-amount:LABEL = "Credit":R15.
Skc said:
I have a procedure that displays information on the screen in a down frame. One of the field is a decimal field which column-label can change. Codes as follows:-

IF mappamt:LABEL BEGINS "Debit" THEN
temprec.mp-amount:LABEL = " Debit".
ELSE
temprec.mp-amount:LABEL = " Credit".

Padding with leading space in GUI does not align the column-label properly to the right unless thru trial and error. Is there a better way to get it properly right-aligned? Tried temprec.mp-amount:LABEL:R15 = "Debit" gives compile error.

Thanks for any clue.
Skc
 
bendaluz2 said:
Code:
IF mappamt:LABEL BEGINS "Debit" THEN
    ASSIGN temprec.mp-amount:LABEL = "Debit":R15.
ELSE
    ASSIGN temprec.mp-amount:LABEL = "Credit":R15.


Hullo Bendaluz

Right on! Works well! - R15 should be next to a literal. That's the problem with older folks - sometimes our brain can go on leave without our permission. ;p


Thanks

Regards
 
Back
Top