PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US

WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Nation (External language)
In French: Nation
Defines the display language for the titles, captions, messages... of the windows and controls.
Example
// In C
French=5
Spanish=7;
//LANGUAGE is a radio button
CALLWD("SCREEN,GET, LANGUAGE");
If WdInt==1 CALLWD("NATION,%d",French);
If WdInt==2 { //Spanish
CALLWD("NATION,%d",Spanish);
CALLWD("LIBRARY,ERROR,SPANISH.WDM");
If WdInt>0 CALLWD("ERROR,WDM file not found")
// In Pascal
French:=5; Spanish:=7;
{LANGUAGE is a radio button}
CALLWD('SCREEN,GET, LANGUAGE');
If WdInt=1 THEN {French}
CALLWD('NATION,'+ConvertString(French));
End;
If WdInt=2 THEN {Spanish}
Begin
CALLWD('NATION,'+ ConvertString(Spanish));
CALLWD('LIBRARY, ERROR,SPANISH.WDM');
If WdInt>0 THEN CALLWD('ERROR,WDM file not found');
End;
// In VB
French=5
Spanish=7
'LANGUAGE is a radio button
CALL CALLWD("SCREEN,GET, LANGUAGE")
If WdInt=1 THEN
CALL CALLWD("NATION,"+STR$(French))
End If

If WdInt=2 THEN
CALL CALLWD("NATION,"+STR$(Spanish))
CALL CALLWD("LIBRARY,ERROR,SPANISH.WDM")
If WdInt>0 THEN
CALL CALLWD("ERROR,WDM file not found")
End if
End if
Syntax
Nation(<Language Number>)
<Language Number>: Integer
Number of the language in which the project will be run. This value is defined in the editor when choosing the languages.
Remarks
  • After the call to Nation, the windows (titles, captions, messages) will be loaded... in the requested language.
  • Nation can be used to develop international applications that can be released in several languages
Minimum required version
  • Version 14
Comments
Click [Add] to post a comment