Think more about this, Nadya......
To more normalize this whole issue, you would want a table with object and language as the keys, for example, frmMyForm.pgfMain.Page1.lblFirstName + Spanish. Probably better to go with UPPER() on the tag. In the registry or an INI file, you could store the language pref and read it into a business class property (LocalLang) at application startup. This biz class would be based on a session baseclass and would open the language table and keep it open in it's own private datasession and expose a method called LocalCaption (local for local language)
In the parent class behavior of all controls you would have the following Init:
This.Caption=oLang.LocalCaption(UPPER(SYS(1272,This)),oLang.LocalLang)
Does this make sense?
>I'm interesting (from my curiosity, as always, not in real app right now). How can you create multilingual interface? In Mike's idea, I assume, he has a table, like:
>real_field_name CaptionEng CaptionRus CaptionFr etc. or something similar. Then just assign the language in main program (or config.fpw) and, viola, all user interface is in French now... Am I right?
------------------------------------------------
John Koziol, ex-MVP, ex-MS, ex-FoxTeam. Just call me "X"
"When the going gets weird, the weird turn pro" - Hunter Thompson (Gonzo) RIP 2/19/05