Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Assigning a version number
Message
De
30/03/2000 12:58:42
Elyse Pomerantz
Dynamic Data Concepts, Inc.
Brooklyn, New York, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de projet
Divers
Thread ID:
00352203
Message ID:
00352828
Vues:
14
>>>>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
Thanks! This was just what I needed.

Elyse
Elyse Pomerantz
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform