Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Character field width
Message
De
13/10/2013 13:03:52
 
 
À
13/10/2013 11:29:23
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2008 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01585392
Message ID:
01585397
Vues:
51
http://doughennig.blogspot.no/2006/04/forget-txtwidth-use-gdipmeasurestring.html

>Hi All:
>
>I have a character field on my report that could potentially be as wide as 20 characters. In 90% of the cases, however, the field is less than 12 characters. Since I want the field to display as large as possible, I want to place two fields on the report with code in the 'print when', so that if it is less than 12 characters, use the larger font.
>
>However, since I'm dealing with the Arial font, I can't say len>12, since a 'W' is wider than an 'i'. What is the code I would use?
>
>Thanks,
>
>Yossi
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform