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:
00463811
Vues:
29
Hi Marcel,

You're right, I've just ran a test and received the same results. It means, that I still didn't achieve, what I want... Though, since I included ", " in first Bold expression, the result looks smoothly. Well, if comma could be part of the bold expression, that's fine and I leave it as it is. Otherwise I should keep searching for other ideas...

Thanks for the clarification. I thought, TextWidth would return actual width of the text not based on average (I interpreted Marty's idea this way).

>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
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform