Select case nesting

67 views
Skip to first unread message

Bugs

unread,
Jun 13, 2019, 1:16:21 PM6/13/19
to Annex WiFi RDS
Any chance of permitting a second level nesting of select case?

e.g.
Select case v1
case 5,7,234,23
select case v2
case 23,24,56:  gosub xxx
case ...
end select
case 6,99
select case v2
case 78,23:  gosub yyy
case...
end select
case ...
end select

cicciocb

unread,
Jun 13, 2019, 1:33:44 PM6/13/19
to Annex WiFi RDS
It is actually already implemented with 4 levels max.
Did you found any problem?

Bugs

unread,
Jun 13, 2019, 2:15:38 PM6/13/19
to Annex WiFi RDS
Thanks - I was getting "Too many nested SELECT line xx" etc but I think it is upset by the case else - return so I can get round that now I know not to do it....


CODE: xxxx.bas


asub:
Select case v1
    case 5,7,234,23
       select case v2
          case 23,24,56:  gosub xxx
       case else
         return
     end select
    case 6,99
       select case v2
         case 78,23:  gosub yyy
         case else
                return
     end select
   case else
       return
end select
return


cicciocb

unread,
Jun 13, 2019, 2:27:42 PM6/13/19
to Annex WiFi RDS
Yes, I think there is a bug that need to be fixed

Bugs

unread,
Jun 13, 2019, 4:33:51 PM6/13/19
to Annex WiFi RDS
Maybe I should change my display name...

cicciocb

unread,
Jul 19, 2019, 5:37:26 PM7/19/19
to Annex WiFi RDS
This has been fixed in the 1.39 beta 1
Reply all
Reply to author
Forward
0 new messages