CREATE CLASSLIB TestprojPH
CREATE CLASS TestprojPH OF TestprojPH AS ProjectHook
LPARAMETERS cOutputName, nBuildAction, lRebuildAll, lShowErrors, lBuildNewGuids
LOCAL loProj
lcDate = TTOC(DATETIME())
loProj = _VFP.ActiveProject
loProj.VersionComments = "Project Built on " + lcDate
Modify project Testproj
ooo = _VFP.ActiveProject
ooo.ProjectHookLibrary = "TestprojPH"
ooo.ProjectHookClass = "TestprojPH"
? ooo.VersionNumber
ooo.Build(2)
? ooo.VersionComments
ooo = NULL
>>>
>>>I would like to hard code the date into my exe when I compile it so that the exe contains the date it was compiled on. Or actually, any date that I choose. Can I do that?
>>
>>Jos,
>>
>>You can use a ProjectHook and update whatever you want in its BeforeBuild event. For example, you can use projects VersionComments property to store the info.
>
>I've never tried this Sergey. Can you give me the starting steps in the right direction.
--sb--