|
|
|
|
- Reason
- Correction
- Examples
- Using a WHILE without END
- Nested statements: A WHILE statement and an IF statement are nested
Error 23: No END statement is associated with this WHILE
You are using a loop statement (WHILE). This statement must end with the END keyword. Check the code of your loop statement and add the END keyword if necessary. Using a WHILE without END Code triggering the error
AList=INIRead("Examples", "", "", INIFile) Keyword = ExtractString(AList, nb, CR) WHILE Keyword <> "" nb = nb + 1 ExplName = INIRead("Projects installed", Keyword, "", INIFile) Keyword = ExtractString(AList, nb + 1, CR)
Possible correction Add the END keyword at the end of the loop.
AList = INIRead("Examples", "", "", INIFile) Keyword = ExtractString(AList, nb, CR) WHILE Keyword <> "" nb = nb + 1 ExplName = INIRead("Projects installed", Keyword, "", INIFile) Keyword = ExtractString(AList, nb + 1, CR) END
Nested statements: A WHILE statement and an IF statement are nested Code triggering the error
WHILE I <> TABLE_TABLE1..Occurrence I = I + 1 IF COL_SOFTWARE[I] = "WEBDEV" THEN TABLE_TABLE1[I][2]..BackgroundColor = LightBlue TABLE_TABLE1[I][2]..Color = LightYellow 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.
WHILE I <> TABLE_TABLE1..Occurrence I = I + 1 IF COL_SOFTWARE[I] = "WEBDEV" THEN TABLE_TABLE1[I][2]..BackgroundColor = LightBlue TABLE_TABLE1[I][2]..Color = LightYellow END END
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|