Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MultiLanguage Captions (and other stuff)
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01548737
Message ID:
01548741
Views:
72
>>Hi Gang!
>>
>>We are trying to code up a simple way to have forms show multilanguage captions..... for example,
>>
>>In this Label, we have the Caption = 'User Name'
>>
>>So... we placed this code IN the Caption.....
>>
>>=translatewrd("User Name")
>>
>>using the translatewrd function to send back "User Name" if English, and "Nombre de Usuario" for Spanish (the function looks up the English in a translate table)
>>
>>Works fine when RUN.... but....
>>
>>The problem is..... the Label is BLANK on the form in Development Mode !!!! YIKES!!!
>>
>>Any way to get the Label to show up with something other than Blank???
>>
>>Thanks!
>
>You can create a regular caption and call your function in Label's init, e.g.
>
>this.caption = TranslateWord(this.caption)

You are GENIUS !!! Thanks!!!
Tommy Tillman A+ NetWork+ MCP
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform