Beth,
In your code lcExpr changes to the French translation between calls to txtwidth() right?
I created a report dropped two labels on it:
test and
a much longer test made them arial 10 pt, opened the report.frx and see that the widths are 2291.667 and 11250 respectively. Then in the command window:
? txtwidth( "test", "arial", 10 )
? txtwidth( "a much longer test", "arial", 10 )
? 11250 / 18
? 2291.667 / 3.667
So the conversion factor for this font/size is 625 ie multiply any txtwidth() return value by 625 to get the right width in the report. If that is still too small you might need to increase it by say 10% or whatever it takes to tweak it right.
> this may be true, and I am probable finding the contanct wrong, because my new sizes are still too small.
>Here is what I do:
>
>lnlength = TXTWIDTH(lcExpr, lcFont, ;
> lnFontsize, lcfontstyle)
>lnConstanct = WIDTH / lnlength
>
>
>after changing the label
>
>
>lnlength = TXTWIDTH(lcExpr, lcFont, ;
> lnFontsize, lcFontstyle)
>REPLACE WIDTH WITH lnlength * lnConstanct
>