Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Verify each object contained in form even with class obj
Message
 
 
To
13/12/2006 14:12:59
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01177307
Message ID:
01177340
Views:
16
This message has been marked as the solution to the initial question of the thread.
>I need to change in runtime some of the captions of labels and/or commandbutton, due to certain preferences of users. It's near to change the caption when switching between languajes.

Are you using your custom label class?

If so, one of the ways to achieve what you want would be to define some property of your label class, say, cUsedLanguage.

Add Assign method to this property and put there code like
lparameters uNewVal
if not this.cUsedLanaguage == m.uNewVal
   this.cUsedLanguage = m.uNewVal
   this.ChangeLanguage(this.cUsedLanguage)
endif
Then, when you want to change language you may call thisform.SetAll("cUsedLanguage", "Spanish") and this would call your method.

That's a trick I learned ~7 years ago from Tray Walpole..
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform