Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Want to compile my app in code
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01569509
Message ID:
01569511
Vues:
78
>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!
MODIFY PROJECT myApp.pjx NOWAIT
...
** And instead of macro use name expression
BUILD EXE (lcEXEName)  FROM (lcProjectName) RECOMPILE
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform