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

TFPVersion

[Properties (by Name)] [Methods (by Name)] [Events (by Name)]

Represents a Free Pascal version number

Declaration

Source position: fpmkunit.pp line 438

type TFPVersion = class(TPersistent)

public

  procedure Clear;

  

Clear the version number to empty state

  procedure Assign(); override;

  

Assign version from another source

  function CompareVersion();

  

Compare this version with another version

  function SameVersion();

  

Check if versions are identical

  property AsString: string; [rw]

  

Version number as formatted string

  property Empty: Boolean; [r]

  

Whether the version number is empty

published

  property Major: Integer; [rw]

  

Major version number

  property Minor: Integer; [rw]

  

Minor version number

  property Micro: Integer; [rw]

  

Micro version number

  property Build: Integer; [rw]

  

Build version number

end;

Inheritance

TFPVersion

  

Represents a Free Pascal version number

|

TPersistent

|

TObject,IFPObserved

Description

Class that encapsulates a Free Pascal version number with major, minor, micro, and build components. Provides methods for version comparison, parsing from strings, and formatting to strings.


Documentation generated on: Dec 15 2025