Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting the main program for build exe
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00925481
Message ID:
00925494
Views:
21
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--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform