Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Part of the string - in Bold
Message
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00461366
Message ID:
00463717
Views:
29
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
Map
View

Click here to load this message in the networking platform