Menu

Problem with OPEN #4

2020-03-21
2020-03-22
  • James Sinclair

    James Sinclair - 2020-03-21

    Hello, I have been a long time user of PC-Basic, and recently I have tried to use an open statement with a record #4, and I have been getting the error message saying its out of range.

    A fair while ago, I posted an item (not under this user name), and learned about the PCBASIC.INI file, and how I can adjust the setting in that to go above the default of 3.

    I have checked this fle, and it is still set at 5 as I had done back then.

    max-files=5

    What have I done wrong, and what should I do?

     
    • Rob Hagemans

      Rob Hagemans - 2020-03-22

      You need to remove the comment sign # at the front of the line, which deactivates it. I.e. it should look like this:
      max-files=5

       
  • James Sinclair

    James Sinclair - 2020-03-22

    Thank you for your advice, and it has now been fixed.

    It had always worked, but, now I know why it stopped. I had downloaded an updated version of pcbasic recently of which must have updated that file too.

     
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.