Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
V6s5, Suggestions, Same App in English and French
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00863849
Message ID:
00864084
Views:
18
This message has been marked as a message which has helped to the initial question of the thread.
Hi, Bhavbhuti

>I like your idea of a text/dbf for switching text on the fly. I had completely forgotten about labels, I was thinking about string messages. This idea looks good, but what are the overheads of poluating labels and strings at runtime?

Of course, there would be an impact on performance, but most of the time this could be almost unnoticeable. If you had all the keywords in an open cursor (which you can populate from a DBF or a text file), and you access it trough a method such as:
oApp.Language.Translate( "This is a string" )
* or
oApp.Language.Translate( this.Caption )
There shouldn't be a great performance. Also, you can instrument your base classes so they take care of adapting to the context language setting. In VFP 8.0, I'd rather use BindEvent, so I don't have to touch my classes, but rather use an external approach.

The best you can do is to take your most complex form and make some tests.

Hope this helps,
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform