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 Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Program ran in Trace, Do, EXE

Status
Not open for further replies.

StreetProgrammer

Technical User
Nov 1, 2001
3
US
I created a simple program in order to learn how READ's work. The thing about it is that it runs fine in the Trace window as I step through the program. It runs fine if I chose DO under Program in the Menu bar. But if I create it as an EXE and run it, I can only pass through two of the three fields I created with the Field tool. The third field will allow an entry but will end the program and clear the screen if I hit enter or use my down arrow. The READ does have a Cycle clause in it and the third field calls a function.

I have also noticed that when I run the EXE from the Trace window's DO, my code in the prg shows up, but when It calls my screen the "source is out of date" error shows. According to Help, there isn't a "source is out of date" error. Rather there is a "source code out of date" error. Relying on that information, I went and deleted the fxp and rebuilt the project and recreated the EXE to no avail.

Thanks for any help.
 
Because you didn't state the version you are running, I'm going to assume FPW 2.6a. If you look in the ..\GOODIES\FNDATION\ directory you find some sample code that explains Foundation READs - I believe this may be one of your problems.

When running in trace mode it's important that all the files you are trying to trace though are in your FoxPro PATH. While a project knows where to find the files to build an .EXE, the debugger doesn't use this information and assumse it will be able to find all the source code pieces in the current DEFAULT directory or in the PATH.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top