Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using #include #define
Message
 
To
28/04/2000 05:16:11
Denis Filer
University of Oxford
United Kingdom
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00364371
Message ID:
00364403
Views:
25
>I am creating a multilingual app. in VFP. Ive been trying to use a common.h file and include this in a form. There are many forms ...
>
>No success yet to map the variables into the form though. Any suggestions/hints about using #include files would be most welcome.

Maybe this can help you. I also did a multilingual app. The approach I took is a bit different than a .h file: I created a language table containing the translation for other languages. The main key is something like language_code+form_name+full_field_name. In the init of my forms (well really in my form class), I verify if the current language is different. If yes, I loop into each fields of the form and replace the caption and tooltip with whatever is in the language table. It is pretty fast and it allow the users to translate themselve the application. It is also dynamic. No need to recompile.

If you want, I can send you the code to do this.

Eric
Eric Crespin
Consultant
PC PLUS Software Inc.
www.pcplus.ca
Previous
Reply
Map
View

Click here to load this message in the networking platform