PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK
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.
WLanguage is made of simple commands, close to everyday language, and is available in English and in French. It allows for intuitive programming.
Let's see an example that illustrates the power of WLanguage: checking the input of an address:
In WLanguage, only a few lines are needed:
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
Comments
Click [Add] to post a comment