Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Picking up the build version
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Installation et configuration
Divers
Thread ID:
01079578
Message ID:
01079585
Vues:
15
>Right now I have the version number hard coded into the start of a program. I'm generating a lot of versions for testing and I sometimes forget to change the version - so it's not clear which one an enduser is testing.
>
>I can set the project build to auto increment the version number, is there any way that I can include that into the source, or perhaps find it at run time?

See AGETFILEVERSION() function
IF AGETFILEVERSION(aFileInfo, _VFP.ServerName) > 0
  lcVersion = "Ver. " + aFileInfo[11]
ELSE
  lcVersion = "Unknown"
ENDIF
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform