Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Last built and Version Number
Message
From
24/07/2006 09:34:16
 
 
To
23/07/2006 09:35:19
Hans-Otto Lochmann
Dr. Lochmann Consulting Gmbh
Frankfurt, Germany
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01138901
Message ID:
01139137
Views:
12
This message has been marked as a message which has helped to the initial question of the thread.
I'm looking for something similar and as easy to use, but automatically created by the project manager.

I see that Dragan showed you how to use the AGETFILEVERSION() function to get the version number.

If I understand you correctly, you want the version and the build date to be available in a file built in to the exe and have this info automagically updated each time you do a new build.

If this is the case, why not vrate a project hook to update the text file whenever you do a new build?

A little code like this in the AfterBuild() method of your project hook should do it for you:
TEXT TO lcStr TEXTMERGE NOSHOW PRETEXT 3
  Build Date: <<TRANSFORM( _vfp.ActiveProject.BuildDateTime )>> 
  Version Number: <<_vfp.ActiveProject.VersionNumber>>
ENDTEXT
STRTOFILE( lcStr, [VersionInfo.txt] )
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform