Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 09:47 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 : Wrinkle in MMBasic Select... Case...

Author Message
CaptainBoing

Guru

Joined: 07/09/2016
Location: United Kingdom
Posts: 2171
Posted: 06:45pm 16 Apr 2018
Copy link to clipboard 
Print this post

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
>
Edited by CaptainBoing 2018-04-18
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3308
Posted: 09:15pm 16 Apr 2018
Copy link to clipboard 
Print this post

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 Zealand
Posts: 9750
Posted: 10:58pm 16 Apr 2018
Copy link to clipboard 
Print this post

@ Captain: Another one to squish.
Smoke makes things work. When the smoke gets out, it stops!
 
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