How do I measure width of a string

"Ken Carrick" <> writes:

> > (Lester Hanger) wrote in article
> <573445$>...
> > I want to set the column width of a StringGrid to fit the width of the
> > heading.  How do I determine the width of the string in order to do
> > this?

> Try
> Length(String) ;

Surely, lesterh must have wanted the width of the string in pixels.
The Canvas.TextWidth method or GetTextExtent function would be just the ticket.

-Chris Snell