Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Want to compile my app in code
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Want to compile my app in code
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01569509
Message ID:
01569509
Views:
87
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
Next
Reply
Map
View

Click here to load this message in the networking platform