Thanks Gérard but ... txtwidth("Period","Tahoma",8)*FontMetric(6,"Tahoma",8) and txtwidth(REPL("Period",1000),"Tahoma",8)*FontMetric(6,"Tahoma",8)/1000
both return 30.000 - at least on my system ... Paul ----- Original Message ----- From: "Gérard Lochon" <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Sent: 29 September 2008 14:59:26 o'clock (GMT) Europe/London Subject: Re: Calculating text width > 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 ? wIth txtwidth(REPL("Period",1000),"myfont",8)*FontMetric(6,"myfont",8)/1000 && you"ll get better precision (if not an exotic font which can't deliver 3 digits past the decimal separator) G. [excessive quoting removed by server] _______________________________________________ Post Messages to: ProFox@leafe.com 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.