Information générale
Catégorie:
Gestionnaire de rapports & Rapports
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement