Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting frx width
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00263768
Message ID:
00263809
Views:
24
Vidar,

The FRX stores it's values in 10,000ths of an inch. It's not easy to go from number of characters to what'll fit in an inch especially when proportional fonts and letters are concerned. For example iiiii would fit in the same space as WWW so do you use 6 or 3 characters. The FontMetric() function and TextWidth() method can be used to give you lengths of strings in pixels.

>I have to use the width field of an frx (report) as an input parameter to the LEFT() function, like this:
>
>cString = LEFT(frx.expr,frx.width)
>
>How can I convert between width in the frx and number-of-characters as required by the LEFT() function?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform