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:
01569582
Vues:
81
J'aime (1)
I think what you're missing is the NOWAIT on the Modify project. If you don't the code will stop until you close the project...

This works for me:
MODIFY PROJECT wcdemo NOWAIT
? _VFP.ActiveProject.Name
which doesn't work without the NOWAIT because you'd end up wiht the project closed.

+++ Rick ---

>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!
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform