MMedit, SELECT CASE bug


Author Message
ville56
Guru

Joined: 08/06/2022
Location: Austria
Posts: 395
Posted: 10:18am 12 Mar 2025      

@Jim,

please have a look at the following:

an empty CASE in a SELECT statement causes the "format indentation" to get nuts.


 
 '+++++++++++++ Main loop ++++++++++++++++
 do
   if rot_ef = 1 then
     rot_ef = 0
     select case rot_state
       CASE 1
     end select
     end if
     loop

if a line, even blank, is inserted, all is ok


 '+++++++++++++ Main loop ++++++++++++++++
 do
   if rot_ef = 1 then
     rot_ef = 0
     select case rot_state
       CASE 1
         'blank line

     end select
   end if
 loop


Regards,
Gerald

TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6455
Posted: 01:35am 13 Mar 2025      

Thanks.
It is a bug I am aware of but I haven't put a high priority on it.

Jim

ville56
Guru

Joined: 08/06/2022
Location: Austria
Posts: 395
Posted: 06:24am 13 Mar 2025      

OK, thanks for your precious work. Using MMbasic would make only half the joy for me without MMedit and MMCC. Great contribution.

Gerald

PhenixRising
Guru

Joined: 07/11/2023
Location: United Kingdom
Posts: 1730
Posted: 07:36am 13 Mar 2025      

  ville56 said  OK, thanks for your precious work. Using MMbasic would make only half the joy for me without MMedit and MMCC. Great contribution.

Gerald


 

circuit
Senior Member

Joined: 10/01/2016
Location: United Kingdom
Posts: 295
Posted: 10:44am 13 Mar 2025      

  PhenixRising said  
  ville56 said  OK, thanks for your precious work. Using MMbasic would make only half the joy for me without MMedit and MMCC. Great contribution.

Gerald


 


I echo that appreciation; MMEDIT is in constant use across all my "mites".