Dear tech team,
I am unable to show messages in different languages when I use accept command, I have message file but using it make compile error,Can someone help me
Language settings on accept
Re: Language settings on accept
Hi,
Could you post your zipped app so we can see what you're doing? If you don't want to post your app to the forum, please send it to us at cspro@lists-census.gov
Sherrell
Could you post your zipped app so we can see what you're doing? If you don't want to post your app to the forum, please send it to us at cspro@lists-census.gov
Sherrell
Re: Language settings on accept
Dear sherrell,
Thanks for helping me actually I have this example code
numeric manual_choice = accept(100,101, 102);
I wanna show same message in, lets say TA
for that I have message file
"
{Application 'MENU' message file generated by CSPro}
100 Select the Menu
101 Supervisor Menu
102 Interviewer Menu
Language=TA
100 மெனுவைத் தேர்ந்தெடுக்கவும்
101 மேற்பார்வையாளர் மெனு
102 நேர்காணல் செய்பவர் மெனு
"
when compiling I get error "ERROR(MENU_ID, 8): Invalid character expression" near accept command
in this context how I achieve this explain
Thanks for helping me actually I have this example code
numeric manual_choice = accept(100,101, 102);
I wanna show same message in, lets say TA
for that I have message file
"
{Application 'MENU' message file generated by CSPro}
100 Select the Menu
101 Supervisor Menu
102 Interviewer Menu
Language=TA
100 மெனுவைத் தேர்ந்தெடுக்கவும்
101 மேற்பார்வையாளர் மெனு
102 நேர்காணல் செய்பவர் மெனு
"
when compiling I get error "ERROR(MENU_ID, 8): Invalid character expression" near accept command
in this context how I achieve this explain
-
- Posts: 1882
- Joined: December 5th, 2011, 11:27 pm
- Location: Washington, DC
Re: Language settings on accept
The accept function expects strings, not numbers, so you need to convert those numbers to strings. You can do this with either the maketext or tr functions. For example:
numeric manual_choice = accept(tr(100), tr(101), tr(102));