Konu: Placing a variable-width label on a form
Hello:
In the Init in a form, I have the following:
WITH THISFORM
.lblDewd.Caption = TRIM(ctype)
.lblDewd.left = .left + .width/2 - .lblDewd.width/2
ENDWITH
I am placing the text in field ctype in the caption of a label, and then, I try to center the label on the form. However, it does not work, and I do not understand why. The formula is correct; it works for labels with fixed width.
Any suggestions?
Regards,
Hans L