Menu

Select Case

jackjames
2023-12-13
2023-12-13
  • jackjames

    jackjames - 2023-12-13

    I know I'm a pain in the ass...
    A question I've wanted to ask for a long time.
    Let's talk about "Select Case"
    case 10 - It works
    Case 1 to 23 - It works
    Case 1,3,5,7 - Does not work.

    Is my compiler bad or is there a reason why this feature wasn't implemented?

     
  • Anobium

    Anobium - 2023-12-13

    You are correct. Never implemented.

    Looks like it would be possible to add Case 1 OR 3 OR 5 OR 7, but replacement of "," to"OR" statements and then make the changes in the CompileSelect sub routine.

    Is this time for you have a look at the source? Line 8221 CompileSelect in GCBASIC.BAS

    You can compile directly from GCSTUIDO.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.