Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Part of the string - in Bold
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00461366
Message ID:
00463717
Vues:
28
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform