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

HowTo compile .prg to .fxp

Status
Not open for further replies.

bigWinks

Programmer
Nov 6, 2003
2
NZ
Hi all!
I am diving into my first experience with FoxPro and have made some changes to a .prg file that I want to make a .fxp file from.
How do I do that?
I am not sure which version of FoxPro I am using, I think it is 2.6 (it flashes past on the screen to quick to read).
Thanks for your time and help!
Andrew Winks
 
First recommendation -- unless you are prevented from doing (such as maintining an existing application) make your first work in Foxpro in one of the Visual Foxpro versions.

But, assuming that you have no choice, then here we go...

There are 2 basic means of converting PRG files into FXP files.

1st Method: Open your PRG file and from Foxpro's Top Menu - Program | Compile. This will make a FXP version of your PRG file.

2nd Method (preferred): Create a Project and ADD your PRG file to it. Then Build the Project. It will compile your PRG into an FXP file. The Project file will help you maintain multiple application components (Program files, Screen files, Report forms, etc.) within a single "framework".

Good Luck,


JRB-Bldr
VisionQuest Consulting
Business Analyst & CIO Consulting Services
CIOServices@yahoo.com
 
If you have the distribution kit, you can make an .exe. If not, you will have to buy it.
To check which version of Fox you are running, type this in the command window:

?version()

In order to make an exe though, you first have to create a project. You can use any acceptable 8 character file name for that:

CREATE PROJECT MyProj

Then, click 'Add' to add your .prg.
After adding your .prg, click 'Build'. If you have teh distribution kit, 'Build Executable' will be selectable.
If not, go here:



-Dave S.-
[cheers]
Even more Fox stuff at:
 
Mmmm, all very helpfull information.
Thanks you very much.
It seems that I don't have the FoxPro application itself.
I just have an FOXR.EXE that can run a .fxp
I guess I need to try and find a copy of FoxPro then.
Thanks again for all your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top