>>>>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