Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting frx width
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00263768
Message ID:
00263809
Vues:
23
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform