Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Is there a setting to force recompilation?
Message
De
09/02/2010 18:03:16
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01448363
Message ID:
01448466
Vues:
34
>>>>Although 'recompile all' is checked on project build, sometimes the code isn't rebuilt and I need to compile explicitly using 'compile' command. Is there a setting somewhere that would make 'Recompile all' work as it is intented to do?
>>>>TIA
>>>>
>>>>Cetin
>>>
>>>One way for PRG files would be to delete all FXP.
>>
>>:) That is not the answer to my question. If I would remember and do that each time I could run 'compile' explicitly too. Thanks anyway.
>>Cetin
>
>This might be something you could do with a project hook. I've never tried using a project hook for anything, but it seems like a good place to perhaps kill FXP files prior to building.
>
>http://fox.wikis.com/wc.dll?Wiki~ProjectHookUses
>
>Not an easy way to accomplish what you are doing, but I'm not sure that there is.

I played with projecthooks but then I discovered that they get compiled into the project, which sometimes leads to funny situations, when it tries to recompile itself while in use. For build I rather use something like this:
		MODIFY PROJECT myPjx NOSHOW NOWAIT
		loPjx=_VFP.PROJECTS("myPjx.pjx")
		lcExe=FORCEPATH("myPjx.exe", lcNameOfTheTargetFolder)
		ERASE (lcExe)
		lcProc=SET("Procedure")
		SET PROCEDURE TO
		TRY
			WITH loPjx
				.VERSIONNUMBER="1.2.3"
				.VERSIONCOMMENTS="myPjx exe, built on "+TTOC(DATETIME())
				.VERSIONCOPYRIGHT="myPjx LLC 2004-"+TRANSFORM(YEAR(GOMONTH(DATE(),6)))
				.versionlanguage="English"
				.VERSIONDESCRIPTION="myPjx version "+THIS.VersionAll4
				.BUILD(lcExe,3,.T., .T.)
				.CLOSE()
			ENDWITH

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform