Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Resetting size of labels programmicly
Message
 
 
À
29/01/2003 16:55:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00746896
Message ID:
00747014
Vues:
31
Beth,

I think you should be able to use the txtwidth and fontmetric functions to convert them.

You might also want to use a text field instead of a label. You can make the width big enough to hold both languages, if you did that you could put a function in to do the translation at runtime without the need to manipulate the FRX at runtime.

> I am working in VFP 6.0 SP5 on NT4.0
>
> I have a small program that opens reports as a table, then goes into the label information and replaces, in this case, English labels with French labels, by STRTRAN(). But sometimes, the translated label is longer then the original label.
> Does anyone know how to calculate the new width of the label, so that when the report comes up in preview or edit mode, the label is not cut off.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform