Skip to main content
Hi there, hopefully I'm not doing something silly.

In the following code block, with READNEXT after a WHILE, the VS Code extension thinks READNEXT and FROM are variables and complains that those and SEL.ID are unassigned variables.

LOOP WHILE READNEXT SEL.ID FROM SEL DO
READ REC FROM SOMEFILE, SEL.ID THEN

Is there some way to change this behaviour in settings or is it just a bug we have to live with for the moment?

Note that this behaviour is not exhibited when READNEXT does not directly follow a WHILE.

Sam
Hi there, hopefully I'm not doing something silly.

In the following code block, with READNEXT after a WHILE, the VS Code extension thinks READNEXT and FROM are variables and complains that those and SEL.ID are unassigned variables.

LOOP WHILE READNEXT SEL.ID FROM SEL DO
READ REC FROM SOMEFILE, SEL.ID THEN

Is there some way to change this behaviour in settings or is it just a bug we have to live with for the moment?

Note that this behaviour is not exhibited when READNEXT does not directly follow a WHILE.

Sam
Hi, Sam.

Thanks for your feedback,  that is a bug and I have reported that to the Dev team last Friday, hope they could fix this asap, thanks.

Best Regards.
Charles.