>Hi everyone,
>
>Simple problem: I want to center caption of my form, so I tried:
>
>
>this.caption=padc('Table Maintenance for '+proper(pcTable),this.width)
>
>Didn't work.
>
>What should I do?
Nadya,
Caption font and size changes by installation. You should first read its setting. Assuming it's Arial,12 you could do something like this :
this.caption = ;
padc(this.caption,;
(WCOLS( )-;
TXTWIDTH(this.caption,'Arial',12)*;
FONTMETRIC(6,'Arial',12)/FONTMETRIC(6)))
Cetin