Set the autowidth on and take the width property ? Just a guess not tried Al
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Paul Newton Sent: 29 September 2008 14:57 To: [EMAIL PROTECTED] Subject: Calculating text width Hi all If I create a label with Autosize set to .t. and the Caption set to "Period", the width of the label is 32 pixels (Font: Tahoma, Size: 8) However the expression txtwidth("Period","Tahoma",8)*FontMetric(6,"Tahoma",8) returns 30. Is there a way to more accurately calculate the width of the label ? Thanks Paul Newton _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[EMAIL PROTECTED] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

