Post Reply 
REPEAT . . . UNTIL loop problem
02-15-2021, 02:43 PM (This post was last modified: 02-15-2021 02:46 PM by Didier Lachieze.)
Post: #16
RE: REPEAT . . . UNTIL loop problem
(02-15-2021 01:25 PM)Wolfgang Wrote:  The problem are further nested IF Conditions inside a REPEAT... UNTIL LOOP. This is imho not allowed. Hence syntax errors.

Well, the program example from the on-calc help for CASE does just that: it includes a CASE statement with several IF THEN END; inside a REPEAT UNTIL loop and there is no syntax error when you press the "Check" soft key (labelled "Cntrl." if you select Nederlands as the calc language). I also tried to add a nested IF THEN ELSE END; inside one of the IF statements and still no syntax error.

If there is a syntax error with the cursor just in front of the UNTIL it means that the UNTIL was not expected at this place, so likely a previous statement is still open hence the missing END; suggestion but, as toml_12953 said, without the original code there is not much more that we can do to help.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
REPEAT . . . UNTIL loop problem - cahlucas - 02-13-2021, 10:50 PM
RE: REPEAT . . . UNTIL loop problem - Didier Lachieze - 02-15-2021 02:43 PM
RE: REPEAT . . . UNTIL loop problem - jte - 01-20-2023, 02:57 AM



User(s) browsing this thread: 1 Guest(s)