Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Last built and Version Number
Message
From
24/07/2006 15:54:13
Hans-Otto Lochmann
Dr. Lochmann Consulting Gmbh
Frankfurt, Germany
 
 
To
24/07/2006 09:34:16
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01138901
Message ID:
01139418
Views:
10
Hi Marcia,

Bingo: You did it - this is exactly I've been looking for!!

I checked it: Your code proposal can easily be extended to put even some more information into this special file (will be a .dbf in my case), which will become a part of the exe. At run time this file can be opened from whithin the .exe and its content or portions of it can be displayed or used otherwise.

Thank you!

Hans

>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