Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

dBase IV ver. 1.5 Runtime problems

Status
Not open for further replies.

aprildsi

Programmer
Apr 11, 2003
3
US
Hi,
I wrote and manage a warehouse application and also a order tracking/production control app that we use here at work. I have in the past distributed a generic version of the warehouse app using Runtime and I want to do that again for a friend of mine.

I'm currently running Win98. To make sure I had all the required files included, I installed runtime to a folder and added the warehouse app files. My problem is that when I try to run the app (mainmenu.dbo) with Runtime I get the error message "File does not exist: mainmenu.dbo" The app file needs to be in the same folder as the runtime files and it is.

I'm not sure if this is a Win98 problem, a Runtime problem, or a problem with the app (it works fine when I use dBase to run it). Any suggestions? [ponder]

Thanks,
April
 
When you built the original app, by chance did you explicity call any file using the absolute path to the file? (c:\folder\appfile.name) If so, then there is your problem - and solution.

There's always a better way...
 
tviman,

Well, I went back and checked - no calling of any files by path, I even re-compiled mainmenu.prg after I manually "set path to" and I still get the message "File does not exist mainmenu.dbo". Runtime will run the file dbruncmd.dbo by default so I wrote dbruncmd with the single comand "do mainmenu" and if I start Runtime and let it run that dbo by default, I get the Runtime title screen and then Runtime finishes so I get the DOS message " *** END RUN RunTime " I even rewrote dbruncmd to be just a simple stand alone program (clear the screen, wait for any key press) and I get the same thing - Runtime finishes with out seeming to execute the program.

I was leaning more towards a conflict with Runtime and Windows 98, but I've also tried the same things on a machine in the building running Windows 95.

Any other suggestions?

April
 
1) You can set a PATH in AUTOEXEC.BAT to the directory with RUNTIME.EXE (SET PATH=%PATH%;<runtime-dir>).
An .EXE file will be found on the PATH, a .DBO file will be not.
2) Check the CONFIG.DB in your DBASE directory. Is there a PATH statement? If yes, copy the CONFIG.DB to the RUNTIME directory.
3) Why not put all program files in one directory? There are only 4 files of the RUNTIME environment.
 
You can compile the code if you get dBASE V1.0 for DOS compiler - the compiler comes with dBASE IV Version 5.0

This will help...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top