Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
V6s5, Suggestions, Same App in English and French
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00863849
Message ID:
00864084
Vues:
19
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,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform