Sign in Join
FPDoc Onlineexperiment

TFPVersion class

In unit fpMkUnit

Represents a Free Pascal version number

Declaration

pascal
TFPVersion = class(TPersistent)

Inheritance

  1. TFPVersion
  2. TPersistent
  3. TObject

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.

Properties

AsStringpublicVersion number as formatted string
EmptypublicWhether the version number is empty
MajorpublishedMajor version number
MinorpublishedMinor version number
MicropublishedMicro version number
BuildpublishedBuild version number

Methods

ClearpublicClear the version number to empty state
AssignpublicAssign version from another source
CompareVersionpublicCompare this version with another version
SameVersionpublicCheck if versions are identical

Inherited

From TPersistent (8)

AssignTo DefineProperties Destroy FPOAttachObserver FPODetachObserver FPONotifyObservers GetNamePath GetOwner

From TObject (41)

AfterConstruction BeforeDestruction CheckDisposed ClassInfo ClassName ClassNameIs ClassParent ClassType CleanupInstance Create DefaultHandler DefaultHandlerStr Dispatch DispatchStr Disposed DisposeOf Equals FieldAddress Free FreeInstance GetDisposed GetHashCode GetInterface GetInterfaceByStr GetInterfaceEntry GetInterfaceEntryByStr GetInterfaceTable GetInterfaceWeak GetLastCastErrorInfo InheritsFrom InitInstance InstanceSize MethodAddress MethodName newinstance QualifiedClassName SafeCallException StringMessageTable SystemHasExtendedRTTI ToString UnitName

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.