I need to use the latest Indy component library version. Can I get the library version by some source code command or any other trick to make sure I’m using the correct lib.
I know I’m using the indy....160.bpl – this is what my Delphi XE2 says while moving the mouse over the component bar. The latest INDY lib I take from Fulgan Indy
I need to use the latest Indy component library version. Can I get the
Share
How to get version of Indy by using an Indy component at runtime ?
As @Remy pointed out in his comment, you can get the Indy version from any Indy component by using the
Versionproperty. Here’s a sample usingTIdHTTPcomponent:How to get version of Indy without an Indy component at runtime ?
You can get the whole version string in Indy’s versioning format:
from the
gsIdVersionconstant defined in theIdVers.incfile included in theIdGlobal.pasunit in a way like follows:or if you have Indy revision at least since 25th October 2012 (4850), you can use the individual version information elements, whose are defined in the same include file as mentioned before e.g. this way:
How to get version of Indy at design time ?
To get Indy version at design time you can simply right click any of the Indy’s components dropped on a form and open its
Aboutbox through theAbout Internet Direct (Indy)...menu item.Where are the version information defined ?
As I’ve mentioned before, it’s in the
IdVers.incinclude file stored in the..\Lib\System\folder of the library and it might be the next option of how to get the Indy’s version information.Disclaimer
Some of what was mentioned here applies to the Indy’s most recent version at this time, but I’m not sure if it applies also to all older versions (such as Indy 9 for instance).