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

Problem Compiling PRG to FXP 1

Status
Not open for further replies.

HappySoft

Programmer
Sep 18, 2002
2
NL
I have a compile problem in VFP6.

For example:
I have a PRG called TEST.PRG. When I change this PRG and then run the PRG with the command DO TEST.PRG, not the 'new' but the 'old' PRG is executed.
Reason : The TEST.FXP does not change when the TEST.PRG changes. When I delete the TEST.FXP, a new one is made and the correct TEST.PRG is executed.

Can anybody tell me how I can solve this problem. I have allready reinstalled VFP6, but the problem didn't go away.
The problem occurs bij every PRG, thus also by PRG's made last week (when everything worked fine) and by new made PRG's.
 
Try using

Use CLEAR PROGRAM to clear the compiled program buffer.


Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Is the computer that executes the program the same one as the computer that is compiling the program? Be aware if the file dates/times of PRGs,FXPs and EXEs are not chronological...then you can get unexpected results when executing a program. These files dates and times can be out of sync if the system clock is different on the one that develops vs the one that compiles.

HTH

Wayne Brady
 
If you are running these in the Development Environment, make sure you set:
SET DEVELOPMENT ON

If this value is off, then saving changes to the .PRG won't delete the current .FXP.

Also, make sure your VFP path doesn't include directories in front of your current directory that may have the same named .PRG or .FXP file(s).

Rick

Rick
 
Another fix is to go to PROGRAM...COMPILE from the system menu whenever you are getting ready to run your prg again...this will manually compile a new fxp for you...personally I like and use Rick's suggested method, but I offer this as another solution

Slighthaze = NULL
 
And yet another suggestion (or two).

In VFP 6, go to Tools->Options->General and make sure the 'SET DEVELOPMENT' check box is selected; and/or, in an edit window, go to Edit->Properties and select the 'Compile before saving' checkbox, and the 'Apply to .PRG files' checkbox.

In VFP 7, You can also go to Tools->Options->General and make sure the 'SET DEVELOPMENT' check box is selected and
you can set 'Compile before saving' checkbox in the Tools->Options->IDE tab.


Dave S.
[cheers]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top