General information
Category:
Reports & Report designer
Hi Nadia,
No I didn't try.
But I can't understand the difference.
_screen.textWidth reports a wide in pixel and TXTWIDTH a character length of a character expression with respect to the average character width for a font.
_screen.TextWidth() = TXTWIDTH() * FONTMETRIC(6)
So
_screen.fontname="Times New Roman"
_screen.fontsize=9
_screen.fontbold=.t.
_screen.textwidth(alltrim(buyer)+", ") / _screen.textwidth(" ")
is eqal to
TXTWIDTH(alltrim(buyer)+", ","Times New Roman",9,"B") / TXTWIDTH(" ","Times New Roman",9,"B") )
Marcel
>Hi Marcel,
>
>I tried it, did you try? I didn't like the result.
>
>>Hi,
>>
>>I think you are also able to use the TXTWITH
>>
>>RETURN SPACE(TXTWIDTH(alltrim(buyer)+", ","Times New Roman",9,"B") / TXTWIDTH(" ","Times New Roman",9,"B"))+ alltrim(Address)+", "+alltrim(City)+", Use "+StateUse
>>
>>Marcel
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only