Menu

Record Length command for Random File

2019-11-20
2019-11-25
  • James DiGiovanni

    Rob -Using an old version of VMWare player to run my GWBasic programs in Windows 98. Windows 10 is having some updates conflict with VMWare players so I'm trying to switch over to PCBasic. I am having the following problem.
    My command line for GW Basic is C:\directory name\gwbasic.exe menu1/S:288 with "menu1" being the program to open. I read to properly adjust the command for PCBasic to use -s=288 instead of /S:288 but it doesn't work. The window starts to open then closes. I have PCBasic 1.2.14. Can you help?

    Jim D

     
  • Rob Hagemans

    Rob Hagemans - 2019-11-21

    Hi Jim, looks like the menu1 program exits immediately; perhaps it is trying to access a file which it cannot find? Without seeing the program it's hard to say. Does it run without the -s=288 option? Where is themenu1 program stored and from where are you calling PC-BASIC?

     
    • James DiGiovanni

      I have moved all my program files and random and sequential files into the PC-Basic-1.2 directory. The program "menu1" is just that - it's a menu of the various functions available and itself accesses no files but simply opens other programs based on a selection. Without the record length indicator menu1 opens and runs fine. Then when using menu1 to open another program that has to access a random file, we get the "illegal function call' error. Right now I am calling the program from a Run command. My command line is C:\SMAPPL\PC-Basic-1.2\pcbasic.exe menu1-s=288.

      Hope that helps.
      Jim DiGiovanniSM Service & Technology930 Stuyvesant AveUnion, NJ 07083908-687-1880 (Ofc)908-472-4174 (Mobile)In a message dated 11/21/2019 3:58:49 PM Eastern Standard Time, robhagemans@users.sourceforge.net writes:

      Hi Jim, looks like the menu1 program exits immediately; perhaps it is trying to access a file which it cannot find? Without seeing the program it's hard to say. Does it run without the -s=288 option? Where is themenu1 program stored and from where are you calling PC-BASIC?

      Record Length command for Random File

      Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/pcbasic/discussion/general/

      To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

       
      • Marc 'BlackJack' Rintsch

        Just to make sure: There is a space between menu1 and -s=288 in your actual command line? And maybe give the option before the file name.

        Could you produce and show a minimal but runnable example that demonstrates the problem?

         
        • James DiGiovanni

          Putting in the space did it! Thanks...
          Jim DiGiovanniSM Service & Technology930 Stuyvesant AveUnion, NJ 07083908-687-1880 (Ofc)908-472-4174 (Mobile)In a message dated 11/22/2019 8:24:15 PM Eastern Standard Time, marrin@users.sourceforge.net writes:

          Just to make sure: There is a space between menu1 and -s=288 in your actual command line? And maybe give the option before the file name.

          Could you produce and show a minimal but runnable example that demonstrates the problem?

          Record Length command for Random File

          Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/pcbasic/discussion/general/

          To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/

           
  • Rob Hagemans

    Rob Hagemans - 2019-11-23

    As Mark siggests, I think the problem is the lack of a space. Your command line should be

    C:\SMAPPL\PC-Basic-1.2\pcbasic.exe menu1 -s=288

    As it stands it tries to open a file named menu1-s=288, fails to find it, and exits with a File not found error.

     
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.