Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 13:53 30 Apr 2024 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 : MMBasic Exit Do

Author Message
Dinosaur

Guru

Joined: 12/08/2011
Location: Australia
Posts: 304
Posted: 08:49pm 10 Nov 2013
Copy link to clipboard 
Print this post

Hi All

Just spent hours trying to find a simple error: Unexpected Text

This is mainly aimed at Geoff.
We have:
Exit Sub
Exit For
Exit Function
Why do we only have Exit instead of Exit Do ?

Regards

Regards
Hervey Bay Qld.
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3165
Posted: 11:38pm 10 Nov 2013
Copy link to clipboard 
Print this post

Excellent question and I don't know why !

At the time (over two years ago) I was following BW BASIC's syntax as they claimed that they were ANSI or GW Basic compliant. But on re reading the ANSI standard they use EXIT DO and GW Basic does not have a DO LOOP. Visual BASIC does and it also uses EXIT DO.

The fix is easy, I will add EXIT DO to the next version. I will also leave just EXIT on its own in the language so that old programs can continue to run.

Geoff
Geoff Graham - http://geoffg.net
 
Dinosaur

Guru

Joined: 12/08/2011
Location: Australia
Posts: 304
Posted: 06:04pm 11 Nov 2013
Copy link to clipboard 
Print this post

Hi All

Thanks Geoff.
Worth noting that FreeBasic also uses Exit Do
and that is why I was so puzzled by the error.

Regards
Regards
Hervey Bay Qld.
 
Print this page


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

© JAQ Software 2024