Skip to content

TFPVersion.CompareVersion

Compare this version with another version

Declaration

Source position: fpmkunit.pp line 452

public 
function TFPVersion.CompareVersion(AVersion: TFPVersion) : Integer;

Description

CompareVersion performs a numerical comparison between this version object and another version.

The comparison follows semantic versioning rules, comparing major, minor, micro, and build numbers in sequence.

Returns a negative value if this version is older, zero if versions are equal, or positive if this version is newer.