Menu

#9 Please add the RENUM command for code with line numbers

open
nobody
None
5
2023-03-19
2023-03-18
Oliver
No

For compatibility reasons to other BASIC programs like GWBasic it would be nice to have the RENUM command available for old code with line numbers to reorder the line numbers.

RENUM[new number],[old number][,incrementR]]

Discussion

  • Paul Edwards

    Paul Edwards - 2023-03-18

    Hi Oliver. I'm a bit confused. Are you aware that there is already a renum command shipped with bwbasic? I'm not sure how to use it, but it's there. Are you saying it is insufficient for what you are trying to do? If so, it would be good if you could explain what is wrong with it.

     
    • Oliver

      Oliver - 2023-03-18

      Here's a picture of a short example:

      The example works in GW-BASIC.

      EDIT:
      I also added a screenshot of GW-Basic.

       

      Last edit: Oliver 2023-03-18
      • Paul Edwards

        Paul Edwards - 2023-03-18

        You have run "renum" instead bwbasic. It is a separate executable.

         
        • Oliver

          Oliver - 2023-03-18

          I understand. But the BWBasic version of FreeDOS 1.3 does not ship with a renum DOS command.

           
  • Paul Edwards

    Paul Edwards - 2023-03-18

    I see that the executable isn't provided in the download folder though. You need to compile it yourself. Alternatively, there is a precompiled binary on the PDOS/386 hard disk image available from http://pdos.org - it is a win32 executable. It's also in customb.zip.

     
    • Oliver

      Oliver - 2023-03-18

      I see, thank you for your answer. Maybe informing the people from the FreeDOS project would be a good thing so they ship BWBASIC with a working RENUM executable in one of their next FreeDOS versions.

      On the other side, it would also be nice to have that command in the BWBasic interpreter in the first place.

       

      Last edit: Oliver 2023-03-18
  • Paul Edwards

    Paul Edwards - 2023-03-19

    You can tell the Freedos people you would like it included, as an actual user.

    I'll leave the feature request open for Howard to comment about including the functionality in the interpreter itself.

     
    • Oliver

      Oliver - 2023-03-19

      Thanks.

       

Log in to post a comment.