ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

Help / WLanguage / Errors / WLanguage errors
  • Reason
  • Correction
  • Examples
  • Using two incompatible WLanguage keywords
  • Incorrect calculation expression
  • Using a keyword without respecting its syntax: SWITCH without condition for example
  • Using an incorrect syntax for the functions
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 1: Syntax error
Reason
A syntax error was detected in the current line of code. The reasons for this error can be:
  • A WLanguage keyword was improperly used.
  • A WLanguage symbol (brackets, ...) was improperly used.
Correction
Check and correct the syntax of the current line.
Examples

Using two incompatible WLanguage keywords

Code triggering the error
FOR WHILE MyVariable > 10
Array1[MyVariable] = MyVariable+10
END
Possible correction
Use the appropriate keyword.
WHILE MyVariable > 10
Array1[MyVariable] = MyVariable+10
END

Incorrect calculation expression

Code triggering the error
Use the appropriate keyword.
MyVariable = 10 ** 3
Possible correction
Delete the second " * ".
MyVariable = 10 * 3

Using a keyword without respecting its syntax: SWITCH without condition for example

Code triggering the error
SWITCH
CASE 2: ErrorText = "The name of the customer is not entered"
CASE 3: ErrorText = "The phone number of the customer is incomplete"
END
Possible correction
Specify the condition.
SWITCH ErrorCode
CASE 2: ErrorText = "The name of the customer is not entered"
CASE 3: ErrorText = "The phone number of the customer is incomplete"
END

Using an incorrect syntax for the functions

Code triggering the error
HReadFirst)Customer, Name)
Possible correction
Replace the closing bracket by an opening bracket.
HReadFirst(Customer, Name)
This page is also available for…
Comments
Click [Add] to post a comment

Last update: 05/26/2022

Send a report | Local help