Hi,
> In my application I need to generate the user defined generic Data entry screen. User has got option to select the required FONT and SIZE. I am trying to make use of FONTMETRIC() to calculate the width of each Text Box. FONTMETRIC() gives proper value for ARIEL font. But it is not proper with COMIC SANS MS and VERDANA (example) Fonts. Is there any better way to calculate the WIDTH of TEXTBOX?
I noticed in some tests I made a long time ago, that either FONTMETRIC() or TXTWIDTH() sometimes are sensitive to the font used in the current form, even if supplying the arguments for the font name and size. You could temporarily set the current form's font properties according to the font you want to check and try these funtions again.
Armin