Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 09:53 11 Nov 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : EXIT DO skips line?

Author Message
crez

Senior Member

Joined: 24/10/2012
Location: Australia
Posts: 152
Posted: 11:07pm 14 Apr 2018
Copy link to clipboard 
Print this post

running this under DOS mmbasic 5.0406 the line following the loop command is not executed. If a blank line is added after 'loop' then all is fine.


j=0
Do
j=j+1
If j=10 Then Exit Do
Loop
Print "this line is skipped"
Print "execution starts here"
End

Edited by crez 2018-04-16
 
Chopperp

Guru

Joined: 03/01/2018
Location: Australia
Posts: 1106
Posted: 11:19pm 14 Apr 2018
Copy link to clipboard 
Print this post

What happens if you put say PAUSE 500 in the loop?
ChopperP
 
crez

Senior Member

Joined: 24/10/2012
Location: Australia
Posts: 152
Posted: 11:38pm 14 Apr 2018
Copy link to clipboard 
Print this post

no change, just slower.
 
disco4now

Guru

Joined: 18/12/2014
Location: Australia
Posts: 1044
Posted: 12:54am 15 Apr 2018
Copy link to clipboard 
Print this post

Known issue fixed in 5.04.08 according to the change log.
F4 H7FotSF4xGT
 
Grogster

Admin Group

Joined: 31/12/2012
Location: New Zealand
Posts: 9750
Posted: 02:10am 15 Apr 2018
Copy link to clipboard 
Print this post

Yes, I remember seeing this one at the time, and disco is right - it's been fixed, so please update your MMBASIC for DOS you are using.
Smoke makes things work. When the smoke gets out, it stops!
 
crez

Senior Member

Joined: 24/10/2012
Location: Australia
Posts: 152
Posted: 02:42am 15 Apr 2018
Copy link to clipboard 
Print this post

Thanks, After I posted It occurred to me this might be the case.
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025