|
Forum Index : Microcontroller and PC projects : Wrinkle in MMBasic Select... Case...
| Author | Message | ||||
| CaptainBoing Guru Joined: 07/09/2016 Location: United KingdomPosts: 2171 |
Hello All (but esp Geoff and Peter M) I have discovered a small bug with an easy work-around in the Select Case construct. When comparing a negative constant I get the following error [18] Case -2 Error: Syntax 1 It seems the case statement is not correctly evaluating the argument of negative two. The work-around is simple enough: Case 0-2 one for the list? > ? mm.ver 5.0408 > ? mm.device$ Micromite MkII > |
||||
| Geoffg Guru Joined: 06/06/2011 Location: AustraliaPosts: 3308 |
Good find, thanks. I will fix it in the next beta. Geoff Geoff Graham - http://geoffg.net |
||||
Grogster![]() Admin Group Joined: 31/12/2012 Location: New ZealandPosts: 9750 |
@ Captain: Another one to squish. Smoke makes things work. When the smoke gets out, it stops! |
||||
| The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |