PC SOFT

WINDEVWEBDEV AND WINDEV MOBILE
ONLINE HELP

Home | Sign in | English UK

  • 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
Products
WINDEVWEBDEV - Server codeWEBDEV - Browser codeWINDEV MobileReports and Queries
Platforms
WindowsLinuxWindows MobileUniversal Windows 10 AppAndroidAndroid Widget iPhone/iPadApple Watch
Languages
JavaPHPAjaxUser code (UMC)External language
Databases
HFSQLHFSQL Client/ServerStored proceduresOLE DBODBCNative Accesses
Error 1: Syntax error
Reason
A syntax error was detected in the current code line. 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)
Minimum version required
  • Version 0
This page is also available for…
Comments
Click [Add] to post a comment