03-16-2023, 05:27 PM
(This post was last modified: 03-16-2023, 05:43 PM by mnrvovrfc.
Edit Reason: six times in five minutes, sorry about that
)
(03-16-2023, 03:23 PM)SMcNeill Wrote: In that case, simply do:
In SICK64 must instead jump to the code after the last line which is shown in the example, because that interpreter doesn't recognize subprograms.
eoredson you'll have to edit your documentation a bit, the code example has "NEXT" where there should be a "NEXTIF" to match the "FORIF", I think because I haven't tried it, I have to go back to Windows to test 32-bit stuff, don't like doing it with Linux/Wine.
Code: (Select All)
10 FORIF M=-1,L=1 TO 10
20 PRINT L;
30 NEXTIF
This could be replicated in QB64(PE) (according to "FORIF" instructions in attached text file):
Code: (Select All)
5 IF M = -1 THEN
10 FOR L=1 TO 10
20 PRINT L;
30 NEXT
35 END IF
EDIT: Noticed also the "SELECTIF". These weird constructs are to combine "IF" with "FOR" or some other scope construct. But it could be confusing to somebody deeply ingrained into Microsoft BASIC. The "FORIF" in particular resembles the "for(initialize; condition; update)" in C. Might as well re-create "FOR... NEXT" along those lines.