Contains the version number constants of the LCL.

The LCLVersion unit contains the version number constants of the LCL. They can be used at runtime to determine the LCL version, so LCL application writers and component writers can offer different functionality or workarounds for bugs and take the LCL version into account while choosing their algorithms at run-time.

Likewise, these version constants can be used at compile time in an conditional expressions, such as {$IFDEF lcl_major>0}. Currently these kinds of epressions are only support in {$mode delphi}. Recently fpc 2.3.1 added support for these kind of expressions in {$mode objfpc}.

LCL major version
Given a complete version string like 0.9.25, the lcl_major constant contains the first number.
LCL minor version
Given a version string like 0.9.25, the lcl_minor constant contains the second number.
lcl_version
LCL release number
Given a version string like 0.9.25, the lcl_release constant contains the third number.
lcl_version
LCL patch version
Given a complete version string like 0.9.24.1, the lcl_patch constant contains the last number. If there is not fourth number, for example when the version string is 0.9.25, then lcl_patch is 0.
lcl_version
LCL version string
Contains the LCL version string.