|
|
|
|
- Reason
- Correction
- Examples
- Using a conditional statement without END
- Nested statements
Error 26: No END statement is associated with this THEN
A conditional statement (IF THEN) was used over several lines. This statement must end with the END keyword. Check the code of your conditional statement and add the END keyword if necessary. Using a conditional statement without END Code triggering the error
IF TABLE_Lesson.Empty THEN IMG_Draw.State = Grayed
Possible corrections Use "..." at the end of the line to indicate that the current code line continues over the next line.
IF TABLE_Lesson.Empty THEN ... IMG_Draw.State = Grayed
Use the END keyword to specify that the conditional condition is ended.
IF TABLE_Lesson.Empty THEN IMG_Draw.State = Grayed END
Nested statements Code triggering the error
IF TABLE_Lesson.Empty THEN IF EDT_Value = "" THEN IMG_Draw.State = Grayed END
Possible correction Check whether all the nested statements are properly ended (with the END statement for example). In our example, the IF statement has no associated END statement. Add an END statement.
IF TABLE_Lesson.Empty THEN IF EDT_Value = "" THEN IMG_Draw.State = Grayed END END
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|