Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting the main prg of a project
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Setting the main prg of a project
Miscellaneous
Thread ID:
00945996
Message ID:
00945996
Views:
53
Hi, Should I be able to re-set the "main" prg of a project with this code, or
some other way? I thought so but "loProj.SetMain(mMain)" isn't doing this ??
Thanks
Steve
public mProject, mMain, ThisExe
*** add colum
mProject 	= 	"AddColumn"     && proj name
mMain 		= 	"AddDay"        && set this prg to main
ThisExe		=	"aDay"		&& the name of exe
build_Proj()

proc build_proj 
  Modify Project (mProject) NOWAIT NOSHOW
  loProj = _VFP.ActiveProject
  loProj.SetMain(mMain)                       && <--  should re-set the main prg ??
  **loProj.Build(lcProject, ccBUILDACTION_BUILDEXE)
  modi proj (mProject)                        && the prg has not been set to main
  loProj.Close()
  BUILD EXE &ThisExe FROM &mProject recompile
endProc
Next
Reply
Map
View

Click here to load this message in the networking platform