Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Picking up the build version
Message
General information
Forum:
Visual FoxPro
Category:
Installation, Setup and Configuration
Miscellaneous
Thread ID:
01079578
Message ID:
01079585
Views:
14
>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--
Previous
Reply
Map
View

Click here to load this message in the networking platform