Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using 'local' data in Client/Server
Message
From
27/08/2008 11:40:58
 
 
To
27/08/2008 09:25:52
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01342169
Message ID:
01342230
Views:
11
This message has been marked as a message which has helped to the initial question of the thread.
See http://forums.microsoft.com/msdn/ShowPost.aspx?PostID=748255&SiteID=1

>Hello,
>
>This is a question regarding moving from VFP to C#. In our VFP application, we have a feature where users can change the language of the interfaces. We implemented it in such a way that we have a "translation" table (a free VFP table) with the English text and the translations of the text into the different languages.
>
>CREATE TABLE Transl (trSeek C(200), trEnglish M, trSpanish M, trDutch M)
>INDEX ON trSeek TAG trSeek
>
>*-- In the form's INIT() event we are translating each label and tooltiptext depending on the language setting
>
>THIS.lblEmployeeName.Caption = DoTranslate("Employee name")
>
>*-- And in DoTranslate we pick up the string and get the translation:
>
>PROCEDURE DoTranslate
>LPARAMETERS tcString
>LOCAL lcLanguage
>lcLanguage = "Spanish"
>IF SEEK(tcString,"Transl","trSeek")
>  lcRetVal = EVALUATE("Transl.tr" + lcLanguage)
>ELSE
>  lcRetVal = tcString
>ENDIF
>RETURN lcRetVal
>
>The translation table has about 3000 entries, is very fast and of course we distribute this table together with the VFP application, so that is no big deal in VFP.
>
>As we are moving some of our projects to C# we are wondering what approach we should use in a strict client server application. How is this kind of local data treated best?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Previous
Reply
Map
View

Click here to load this message in the networking platform