Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
I dare you...
#19
(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.
Reply


Messages In This Thread
I dare you... - by eoredson - 03-16-2023, 12:41 AM
RE: I dare you... - by mnrvovrfc - 03-16-2023, 12:52 AM
RE: I dare you... - by TerryRitchie - 03-16-2023, 12:55 AM
RE: I dare you... - by eoredson - 03-16-2023, 01:52 AM
RE: I dare you... - by mnrvovrfc - 03-16-2023, 01:59 AM
RE: I dare you... - by PhilOfPerth - 03-16-2023, 02:18 AM
RE: I dare you... - by eoredson - 03-16-2023, 02:29 AM
RE: I dare you... - by eoredson - 03-16-2023, 03:17 AM
RE: I dare you... - by SMcNeill - 03-16-2023, 03:32 AM
RE: I dare you... - by mnrvovrfc - 03-16-2023, 02:09 PM
RE: I dare you... - by SMcNeill - 03-16-2023, 03:23 PM
RE: I dare you... - by mnrvovrfc - 03-16-2023, 05:27 PM
RE: I dare you... - by eoredson - 03-16-2023, 03:33 AM
RE: I dare you... - by eoredson - 03-16-2023, 03:41 AM
RE: I dare you... - by aurel - 03-16-2023, 08:04 AM
RE: I dare you... - by mnrvovrfc - 03-16-2023, 02:13 PM
RE: I dare you... - by luke - 03-16-2023, 09:00 AM
RE: I dare you... - by RhoSigma - 03-16-2023, 09:57 AM
RE: I dare you... - by aurel - 03-16-2023, 02:33 PM
RE: I dare you... - by aurel - 03-16-2023, 05:47 PM
RE: I dare you... - by mnrvovrfc - 03-16-2023, 06:25 PM
RE: I dare you... - by aurel - 03-16-2023, 06:39 PM
RE: I dare you... - by aurel - 03-16-2023, 07:14 PM
RE: I dare you... - by eoredson - 03-16-2023, 09:06 PM
RE: I dare you... - by eoredson - 03-16-2023, 10:06 PM
RE: I dare you... - by vince - 03-17-2023, 05:26 AM
RE: I dare you... - by aurel - 03-17-2023, 07:22 AM
RE: I dare you... - by vince - 03-17-2023, 02:53 PM
RE: I dare you... - by eoredson - 03-18-2023, 02:09 AM



Users browsing this thread: 14 Guest(s)