Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Determine how many characters fit in a text box
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00800818
Message ID:
00801034
Vues:
20
This message has been marked as the solution to the initial question of the thread.
Hi,

Try this:

txtwidth([cText],[cFontname],[nFontsize],'N')*fontmetric(6,[cFontname],[nFontsize])

Note:
You can change 'N' is one of things exact with the fontstyle you use for text. Ex: 'N': normal, 'B': Bold, ie
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform