Compiler issue


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Robert G Laurin on August 14, 2018 at 12:17:16:

I am trying to compile a new IBS source I just wrote. I am getting an "error M15: FOR/NEXT nesting error"

Here's the code:


Clear
Print (0) (CS);(ET)
For COUNT = 1 to 100
LET IND = RND(IND) * 100
KEY$ = STR(IND)
DATA$ = STR(IND) + STR(COUNT)
stlSet(mySTL, KEY$, DATA$)
Next COUNT
********

If I change the FOR/NEXT to a DO/LOOP all is fine:


Clear
Print (0) (CS);(ET)
DO
COUNT = COUNT + 1
IND = RND(IND) * 100
KEY$ = STR(IND)
DATA$ = STR(IND) + STR(COUNT)
stlSet(mySTL, KEY$, DATA$)
Loop While COUNT < 100

So, why ?

This tested on Windows 7 Pro, Comet32 2018.514/17.01



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]