ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Errors / WLanguage errors
  • Reason
  • Correction
  • Examples
  • The syntax of the function is incomplete: the closing bracket is missing
  • Incorrect calculation expression
  • The line of code is written over the next line
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
Error 2: Incomplete line
Reason
The current line of code is incomplete: the current WLanguage statement did not end. The most common cases are:
  • The statement used is not completed: a bracket is missing for example.
  • The code line is written over the next line.
Reminder: In the code editor, going to the next line (with the ENTER key) is considered as being a separator of statements.
Correction
Check the syntax of the function and complete the line.
Examples

The syntax of the function is incomplete: the closing bracket is missing

Code triggering the error
HReadFirst(Customer, Name
Possible correction
Add the closing bracket at the end of the line.
HReadFirst(Customer, Name)

Incorrect calculation expression

Code triggering the error
MyVariable = 3 +
Possible correction
Complete the line of code if necessary.
MyVariable = 3 + 3

The line of code is written over the next line

Code triggering the error
// Add rows in a Table control populated programmatically
TableAdd(TABLE_TABLE1, CUSTOMER.CONTACTNAME + TAB + CUSTOMER.COMPANYNAME +
TAB + CUSTOMER.CUSTOMERCITY
Possible correction
Use "..." at the end of the line to indicate that the current line of code continues over the next line.
// Add rows in a Table control populated programmatically
TableAdd(TABLE_TABLE1, CUSTOMER.CONTACTNAME + TAB + CUSTOMER.COMPANYNAME + ...
TAB + CUSTOMER.CUSTOMERCITY)
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help