![]() |
Forum Index : Microcontroller and PC projects : MMBasic Exit Do
Author | Message | ||||
Dinosaur![]() Guru ![]() Joined: 12/08/2011 Location: AustraliaPosts: 323 |
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: AustraliaPosts: 3271 |
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: AustraliaPosts: 323 |
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. |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |