how to make execuitable file in visual foxpro

i wish to make executiable file in visual foxpro prg file. pl. help me. At present i use visualfpxro9.
Mukesh JaniAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Olaf DoschkeSoftware DeveloperCommented:
You need to create a project.
That'll create a project manager window.
This project manager window now manages all your project files.Your main ingredient is your prg file.
So click on the "Code" tab of project manager, and then Add button. Add your prg file.
Now click on "Build".
The build options should default to build an EXE
Click OK, your EXE will be built.

Bye, Olaf.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pcelbaCommented:
You may also do everything by two commands in VFP Command Window:
BUILD PROJECT YourProjName FROM YourPRGname.PRG
BUILD EXE YourEXEname FROM YourProjName

Open in new window

0
Olaf DoschkeSoftware DeveloperCommented:
You could go one step further than Pavel Celba and use this to extend your menu:  http://fox.wikis.com/wc.dll?Fox~PrgToExe:

DEFINE PAD UtilPad of _mSysMenu prompt 'Util' key Alt+U
ON PAD UtilPad OF _MSYSMENU ACTIVATE POPUP Utils
DEFINE POPUP Utils MARGIN RELATIVE

DEFINE BAR CNTBAR('Utils') + 1 OF Utils PROMPT 'Make Exe'
ON SELECTION BAR CNTBAR('Utils') of Utils ;
	EXECSCRIPT( [build project SYS(2023) + '\temp' from (Wontop())] + CHR(13) ;
	+ [build exe (JustStem(Wontop())) from SYS(2023) + '\temp'] )

Open in new window


My intention rather was to show how well guided VFP is once you know the starting point of a project. Almost anything is reachable within a few clicks.
 
Anyway, yes, you also get a project and can continue to work visually once you do the two commands given by the Wiki or Pavel Celba. Or you decide to remain at the "shell level" of things and never reach out to visual designers.

I'd not do and teach VFP9 this way, as it hides away visual designers and anything else to get to know VFP.

On the positive side, you see you aren't forced to do things with click and point. I have a simple setup of a new PJX for a simple single form application in the FAQ section of tek-tips, which I copy here below.

You may just run this to see how you even can "automate" the visual designers. It's advanced VFP just working, no need to understand this. It's not for your current simple demand, but it might get handy later on if you aim for a visual WinForms application instead of simple PRGS.

#Define ccPropjectpath [D:\vfpprojects\singleformVCX\]
MkDir (ccPropjectpath)
Cd (ccPropjectpath)
MkDir [libs]
MkDir [others]
MkDir [prgs]

Create Project singleformVCX.pjx Nowait Save

Local lcFile
Text To lcFile Noshow
On Shutdown Quit
Set Classlib To [forms] Additive
Local loMainform
loMainform=Createobject("frmmain")
loMainform.Show()
Read Events
EndText
StrToFile(lcFile,"prgs\main.prg")
_vfp.ActiveProject.Files.Add("prgs\main.prg")

Text To lcFile Noshow
SCREEN=OFF
RESOURCE=OFF
ALLOWEXTERNAL=ON
EndText
StrToFile(lcFile,"others\config.fpw")
_vfp.ActiveProject.Files.Add("others\config.fpw")

Local Array laForm[1]
Local loForm
Create Class frmMain Of [libs\forms.vcx] As Form Nowait
ASelObj(laForm,1)
loForm = laForm[1]
loForm.ShowWindow = 2 && as top level form
loFOrm.Autocenter=.T.
loForm.Caption="Main Form"
loForm.WriteMethod("Unload","Clear Events")
Activate Window "Class Designer" && change in localized VFP versions
Keyboard '{CTRL+S}'
Keyboard '{CTRL+F4}'
Doevents
_vfp.ActiveProject.Files.Add("libs\forms.vcx")
_vfp.ActiveProject.Build("singleformVCX.exe",3,.t.,.t.,.t.)

Open in new window


The only thing to modify is the path in the first lines #Define

Bye, Olaf.
1
pcelbaCommented:
No response from the author but answers are correct
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
FoxPro

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.