Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Assigning a version number
Message
 
 
To
30/03/2000 10:27:21
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, United States
General information
Forum:
Visual FoxPro
Category:
Project manager
Miscellaneous
Thread ID:
00352203
Message ID:
00352748
Views:
15
>>>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  && you are build an EXE or DLL
   _VFP.ActiveProject.VersionNumber = "MMMM.mmmm.bbbb"
endif
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform