Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Resetting size of labels programmicly
Message
 
 
To
29/01/2003 16:55:18
General information
Forum:
Visual FoxPro
Category:
Reports & Report designer
Miscellaneous
Thread ID:
00746896
Message ID:
00747014
Views:
25
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform