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
17. WLanguage: a simple and powerful language
Previous pageTable of contentsNext page
WLanguage is the language of WEBDEV. This language is used to easily program all the requested Web processes without even knowing HTML, JavaScript or PHP.
Available in English and in French, WLanguage is made of simple commands, close to everyday language. It allows for intuitive programming.
Let's see an example illustrating the power of WLanguage: checking the address input
In WLanguage, a few lines are enough:
IF NoSpace(ADDRESS) = "" THEN
     Error("Specify your address")
     ReturnToCapture(ADDRESS)
END

Here is the equivalent process in JavaScript:
<SCRIPT LANGUAGE=Javascript>
function EXE_NoSpace(szString, nPart)
{
var nFirst = 0;
var nLast = szString.length-1;
if (nPart & 1) while (szString.charAt(nFirst)==" ") nFirst++;
if (nPart & 2) while (szString.charAt(nLast)==" ") nLast--;
return szString.substring(nFirst,nLast+1);
}
// Click (onclick) of BUTTON_OK
function _VALIDORD_BUTTON_OK_CLI()
{
if((EXE_NoSpace(ADDRESS,3)==""))
{
alert("Specify your address");
return;
}
}
</SCRIPT>
WLanguage code is easier to write, understand and maintain. It is much more reliable. Upgrading is easier.
Use WLanguage in all your processes.
Previous pageTable of contentsNext page
Minimum required version
  • Version 23
Comments
Click [Add] to post a comment