Unit 'fpmkunit' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#fcl]

TFPVersion.CompareVersion

Compare this version with another version

Declaration

Source position: fpmkunit.pp line 450

public function TFPVersion.CompareVersion(

  AVersion: TFPVersion

):Integer;

Arguments

AVersion

  

Version object to compare against

Function result

Comparison result: negative, zero, or positive 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.


Documentation generated on: Dec 15 2025