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
Array1[MyVariable] = MyVariable+10
END
Possible correction
Use the appropriate keyword.
Use the appropriate keyword.
WHILE MyVariable > 10
Array1[MyVariable] = MyVariable+10
END
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)
Replace the closing bracket by an opening bracket.
HReadFirst(Customer, Name)
Tags:
Windev