Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:40 01 Aug 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 : CMM2: in some circumstance ERROR is not printing the context

Author Message
thwill

Guru

Joined: 16/09/2019
Location: United Kingdom
Posts: 4311
Posted: 10:12am 31 Jan 2021
Copy link to clipboard 
Print this post

Good morning Peter,

Suspect this is long-standing and possibly one for Geoff, but anyway here goes:

400MHz Colour Maximite 2
MMBasic Version 5.07.00b11
Copyright 2011-2021 Geoff Graham
Copyright 2016-2021 Peter Mather

> list "error-bug.bas"
Dim s$ = "foo"
Select Case s$
 Case "foo" : Error "foo"
 Case Else : Print "bar"
End Select
End

> run "error-bug.bas"
foo

... edit the file to:

> list "error-bug.bas"
Dim s$ = "foo"
Select Case s$
 Case "foo"
   Error "foo"
 Case Else : Print "bar"
End Select
End

> run "error-bug.bas"
Error in line 4: foo


As you can see you get the "Error in line X:" prefix in the second version, but not in the first.

Best wishes,

Tom
MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10310
Posted: 12:30pm 31 Jan 2021
Copy link to clipboard 
Print this post

Thanks - I'll put it in the known bugs file and given the limited use and severity and easy workround it will get fixed one day/never
 
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