Home  |  Contents 

Microcontroller and PC projects
  Forum Index : Microcontroller and PC projects         Section
Subject Topic: Wrinkle in MMBasic Select... Case... Post ReplyPost New Topic
Message << Prev Topic | Next Topic >>

Joined: 07 September 2016
Location: United Kingdom
Online Status: Offline
Posts: 780
Posted: 17 April 2018 at 4:45am | IP Logged Copy link to clipboard   Quote CaptainBoing

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
> ? mm.device$
Micromite MkII

Edited by CaptainBoing on 17 April 2018 at 4:46am

Back to Top View CaptainBoing's Profile Search for other posts by CaptainBoing

Joined: 06 June 2011
Location: Australia
Online Status: Offline
Posts: 2490
Posted: 17 April 2018 at 7:15am | IP Logged Copy link to clipboard   Quote Geoffg

Good find, thanks.
I will fix it in the next beta.

Back to Top View Geoffg's Profile Search for other posts by Geoffg Visit Geoffg's Homepage

Joined: 31 December 2012
Location: New Zealand
Online Status: Offline
Posts: 6522
Posted: 17 April 2018 at 8:58am | IP Logged Copy link to clipboard   Quote Grogster

@ Captain: Another one to squish.

Smoke makes things work. When the smoke gets out, it stops!
Back to Top View Grogster's Profile Search for other posts by Grogster Visit Grogster's Homepage

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Search the forums using Google.
Post ReplyPost New Topic
Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum

Powered by Web Wiz Forums version 7.8
Copyright ©2001-2004 Web Wiz Guide

This page was generated in 0.1250 seconds.
Privacy Policy     Process times : 0, 0, 0, 0.12