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: AustraliaPosts: 311 |
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: 3194 |
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: 311 |
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 |