Posted by Robert G Laurin on May 15, 2017 at 14:01:42:
I have a program that when compiled using Comet32 jumps to address 0000 when a CONTINUE is encountered.
When compiled in Comet16 it works perfectly.
It loops through a lot of data and whenever it encounters a 'CONTINUE' it starts the program over. It was ENTERed, so it still has the COMMONs to run with no user prompt.
Wiki says Continue works ONLY with For/Next & Do/Loop...
The end result is a "Gosub Stack Overflow"
Here is the code structure:
MyRoutine:
For X = 1 to WordsIf Word$(X) GE '0' And Word$(X) < '9Z' ! is a Number
Select Case LookFor
Case 'Unit'
- some code -
Continue ! Next !!Case 'Civic'
- some code -
Continue... more CASEs ...
EndSelect
EndIf
... more IF/EndIf .... ! These are skipped by the Continue
Next X ! Get Next Word$(X)
Return
Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.