2
votes

I´m working with Delphi Radstudio 2010. There is under the option project/options a selection Version information. When I typed in my information, for example data version, I want to read this information with my current project to use it.

How can I read out the Data Version?

2

2 Answers

2
votes

You must use the GetFileVersionInfoSize, GetFileVersionInfo and VerQueryValue functions to get the version information. If you only want to get the version number you can use the SysUtils.GetFileVersion which internally uses these functions.

0
votes

At runtime you can read the version with the function GetFileVersionInfo(). I would read the version independent of localization (pass '\' as the second parameter to VerQueryValue()). Have a look at this example: Version of the application.