I have a form I've created that I'd like to use to compile an app.
Here is what I'm trying:
lcEXEName = ADDBS(ALLTRIM(.txtKPOPS.Value)) + ''myApp.exe'
lcProjectName = ADDBS(ALLTRIM(.txtKPOPS.Value)) + 'myApp'
CD (projectlocation)
MODIFY PROJECT myApp.pjx
_vfp.ActiveProject.VersionNumber = '10'
BUILD EXE &lcEXEName FROM &lcProjectName RECOMPILE
What's happening is when it gets to the "modify project" line - the program stops. If I click on my form again (thus taking the focus away from the project - then I end up with a 'OLE IDispath exception code 0 form Visual Foxpro for Windows: 1923: Object ACTIVEPROJECT is not found...
...which of course kinda makes sense as I've taken the focus off the project file (I actually think it's closing the project).
Anyway - is there some way I can do this? My goal is pretty simple
1. Change the version number of what the compiled .exe will be.
2. Compile the project.
3. Do this from within a form.
Seems like this should be really easy - guess I'm missing something obvious? Anyone have any suggestions??
Thanks!
ICQ 10556 (ya), 254117