>>>>I want to control the version number and not have it increased automatically. Can I use the ProjectHook to assign a version number at build time?
>>>
>>>When you click Build on the Project Manager, you'll get the ability to change the version number. Click on the Version button. The version number will be automatically incremented for you.
>>
>>I don't want it increased automatically and I don't want to have to remember to change it manually everytime I build. I want the version number to be based on the date so I want it to be set automatically (through a routine I will write) each time I build. I'm sure this can be done but I'm not sure exactly how.
>>
>Yes. You can build a projecthook object with the following code in the BeforeBuild event:
>
LPARAMETERS cOutputName, nBuildAction, lRebuildAll, lShowErrors, lBuildNewGuids
>if nBuildAction = > 2 then
> _VFP.ActiveProject.VersionNumber = "MMMM.mmmm.bbbb"
>endif
Thanks! This was just what I needed.
Elyse
Elyse Pomerantz