Tech Support Guy banner
Status
Not open for further replies.

Anyone familiar with PC BASIC?

1.9K views 4 replies 2 participants last post by  lunarlander  
#1 ·
Background: For many years I've used a GW BASIC program I wrote and have improved over the years, (Now on V16,1) :rolleyes: I have an old computer with a XP OS that I keep specifically so I can still use the program as Win10 won't run GW BASIC. It is a shopping program that controls household groceries, records stock on hand, calculated reorder points and produces a shopping list in pick order for the supermarket I use. No graphics involved, just straight operating code.

Problem: I've recently decided to use PC BASIC which will run GW BASIC programs. It works fine in all but one critical area. Saving both the program after amendments have been made and also saving the data files don't work, though loading the existing program and data works fine. No error message; it appears to work, but no save occurs.

I have the files inside the Program Files (X86)/PC BASIC folder. Here is the affected program lines:

First the ones that do work:
The program opens via the PC BASIC initial screen and LOAD "SHO16_1". Also,
<line number> OPEN "I" #1,"SHO16dat.DTA" ( which loads the program data file)"

The ones that don't work:
<line number> SAVE "SHO16_1" (The program after amendments)
<line number> SAVE "SHO16_1.TXT" (The program as a text document)
<line number> OPEN "O" #1,"SHO16dat.DTA" ( which saves the program data file)"

I am assuming any save would be in the PC BASIC folder, where the load came from. If it is saved elsewhere then "Search" can't find it.

Would love some help with this if possible.
 
Save
#3 ·
Thanks LL. That worked OK for the data file, but it still won't save the program itself. The code I gave above works in GW BASIC on the XP machine, but not in PC BASIC on the Win10 machine. Why would that be? The piece of code is identical.

Incidentally, once I right click and choose Open as Administrator, does that need to be done every time? It seems to become the default for that program, but I'm not sure.
 
Save
#4 ·
It is now working perfectly thanks LL. Have found I do need to go in as Administrator every time. Not sure what went wrong that prompted my last post, but it is now working perfectly and consistently.
 
Save
Status
Not open for further replies.
You have insufficient privileges to reply here.