PC SOFT

ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Home | Sign in | English EN
  • Overview
  • Simple yet powerful code
  • Variables and types
  • Powerful programming
  • Powerful structured programming
  • FOR EACH
  • Procedural programming
  • Procedures
  • Object-Oriented Programming
  • Embedded database access
  • Handling UI via programming
  • And even more features...
  • Dynamic compilation
  • Defensive programming
  • Multithreading and parallel tasks
  • Multi-platform
  • Execution security
  • Secure memory area
  • External languages
  • Openness
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
Overview
The integrated WINDEV language, WLanguage, is powerful, simple and intuitive.
it's a fifth generation language (5GL), which means that its commands are highly sophisticated.
A WLanguage command can replace dozens or even hundreds of 4GL commands, making programming easier and more reliable.
No more unnecessary complexity, no more incomprehensible APIs, no more useless programming!
Simple yet powerful code
WLanguage is a clear, easy-to-learn programming language, close to everyday language. The code is easy to write and proofread. Coding and maintenance are therefore optimized.
FOR EACH Customer
Message is Email
Message.Recipient = Customer.EmailAddress
EmailSendMessage(Message)
END
The code above demonstrates the simplicity of WLanguage. WLanguage is available in English and French.

Variables and types

Declaring variables is easy and intuitive.
Message is Email
ArrayOfCustomers is array of Customers
Variables are declared easily and on the spot. WLanguage offers the standard simple types, including integer, boolean, currency, numeric with up tp 38 significant digits, real number or character string.
Over 20 simple types are available.
For more details, see The different types of data.
WLanguage comes with a large number of advanced types that let you easily manage complex notions: emails, RSS streams and signatures, XML documents, resources for schedulers and calendars...
Powerful programming

Powerful structured programming

The essential standard iterative and conditional programming structures are available (FOR i, LOOP, WHILE, IF, SWITCH, etc.) but each one of them has been simplified for efficient and quick code writing.
For example, the variable declaration of the "FOR i" loops is implicit, the SWITCH statements can use the entire range of WLanguage comparisons, ...
SWITCH BookReference
CASE "A" <= * < "H": Floor = 1
CASE "H" <= * < "P": Floor = 2
CASE >= "P": Floor = 3
END
You can use complex intervals to define each CASE.

FOR EACH

"FOR EACH" loops go through all the elements of a set, for example: records in a data file , elements in an array , selected fields in a list, substrings in a string, ...
FOR EACH email NOT READ OF MailServerConnection
END
FOR EACH SELECTED ROW OF OptionList
END
FOR EACH Customer where Country = "France"
END
Procedural programming

Procedures

WLanguage's procedural programming is extremely powerful. Procedures let you organize your code logically.
A WLanguage procedure can have several parameters and several return values.
The parameters can be optional and their number can vary.
Procedures are recursive.
Their type can be strict or flexible.
Main functionalities supported:
  • Automation (repetition, timer, thread),
  • Multiple syntaxes (dynamic dispatch),
  • Internal procedures (closures),
  • Named parameters,
  • Weak or strong typing, ...
The procedures include integrated features. Runtime automation allows for scheduled execution: in 1 minute, in 1 hour, after the initializations, etc.
The execution of a procedure can also be repeated. A procedure can be located in a Timer or a Thread.
"Internal procedures" and lambdas allow writing a sub-procedure within a procedure, which allows you to see the code at a glance, without switching between several procedures.
The local variables of the procedure can be used directly in the sub-procedure ("closure").
The internal procedures can be used in all functions that require a "Callback", including asynchronous functions.
Object-Oriented Programming
You can use object oriented programming with WINDEV. Base class methods can be redefined visually from the project explorer; virtual methods are managed automatically.
Management of the instances' memory is completely automated in most cases, when allocating as well as when freeing memory.
Main features:
  • Classes,
  • Abstract classes,
  • Interfaces (duck typing),
  • Inheritance, multiple inheritance,
  • Reflection,
  • Override (dynamic dispatch),
  • Abstract and virtual methods (polymorphism),
  • Properties (get and set),
  • Constructor,
  • Destructor,
  • Data encapsulation: public, private, protected,
  • Easy programming in 5GL,
  • Automatic freeing,
  • "is one" operator and downcast,
  • Weak reference,
  • Deep copy,
  • ...
Embedded database access
WLanguage includes all aspects of database management. The structure of the database is automatically recognized by the compiler, which allows you to easily handle the different items of the current record of a file (table row).
Programming is done in SQL or WLanguage.
Cursor programming is very powerful.
HReadSeek(Customer, Name, CustomerName)
tapiDial (Customer.PhoneNumber)

Operations on data require that this data be copied from the database to some variables, modified, saved or reloaded into another format. All these common operations are very easily accomplished thanks to the WLanguage syntax.
The WHERE syntax, for example, allows quick access to the sub-elements of a base element.
The homonymic copy lets you copy in a single operation the sub-elements with the same name between two heterogeneous elements.
The serialization and deserialization functions let you save and reload the content of complex elements.
Handling UI via programming
UI controls are very powerful from the moment they are defined in the window editor. Their state and behavior can be modified through programming, via the Control type: 270 display properties (position, width, etc.), as well as the code to run based on the user's actions, can be modified according to your needs.
ControlCreate and ControlClone allow you to create a new control or duplicate an existing control, respectively.
And even more features...

Dynamic compilation

WLanguage is not a static language, it is a dynamic language. The dynamic compilation lets you execute code built on the fly.

Defensive programming

Defensive programming consists of testing the inputs and outputs of each procedure in the code itself; any errors detected will only be displayed in "debugging" mode.
WLanguage offers powerful debugging functionalities dbgAssert, dbgCheckEqual, dbgCheckDifferent, dbgCheckTrue, dbgCheckFalse, ... The creation of unit tests makes it possible to test an application at any time.

Multithreading and parallel tasks

To take advantage of the power of modern multi-core processors and make your applications faster, WLanguage offers advanced thread management.
Parallel tasks are used to split a long process into several shorter processes that will be run in parallel, taking advantage of modern processors. Variables are automatically protected. Synchronization techniques are available:
  • critical sections,
  • mutex,
  • semaphores,
  • signals, ...

Multi-platform

Code written in WLanguage is multi-platform:
  • 32 or 64-bit,
  • Windows,
  • Linux,
  • Android,
  • iOS,
  • Java,
  • Javascript,
  • PHP, ...
Components can be shared among several platforms.

Execution security

The WLanguage security mechanism prevents any data corruption. WLanguage manages errors (non fatal) and exceptions (fatal). Errors and exceptions can be managed automatically or through programming.

Secure memory area

Access to memory areas is controlled, which limits the risks of buffer overflow.

External languages

You can call code written in an external language from WINDEV or vice versa: Java, C++, C#, Fortran, VB, ...

Openness

You have access to all the features and all the standards: API, DLL calls, COM, ActiveX, .NET, J2EE, events...
It is easy to call a C or C++ DLL from a WINDEV application, for example.
Minimum version required
  • Version 7
This page is also available for…
Comments
Click [Add] to post a comment