Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting the main prg of a project
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Setting the main prg of a project
Divers
Thread ID:
00945996
Message ID:
00945996
Vues:
52
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform