![]() |
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 KingdomPosts: 4311 |
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 KingdomPosts: 10310 |
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 |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |