Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Determine how many characters fit in a text box
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00800818
Message ID:
00801034
Views:
19
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform