Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting the main program for build exe
Message
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00925481
Message ID:
00925494
Vues:
18
This message has been marked as the solution to the initial question of the thread.
Hi Steve,

The code below shows how you can manipulate a project programmaticaly and than build EXE.
ccBUILDACTION_BUILDEXE = 3
lcProject = "test"
Modify Project (lcProject) NOWAIT NOSHOW
loProj = _VFP.ActiveProject
loProj.SetMain("test")
loProj.Build(lcProject, ccBUILDACTION_BUILDEXE)
loProj.Close()
>How can I programmatically set the main program prior to building the exe?
>
>I am using this to build an exe
>build myExe from myProj recompile
>
>but I would like to be able to switch the "main" program to build another EXE located
>in the same project.
>
>I have found this Object.SetMain([cFileName]) in help but am not sure how to
>create the project object in the first place.
>
>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform