Pascal Scripting: StrToVersion

Prototype:

function StrToVersion(const VersionString: String; var Version: Int64): Boolean;

Description:

Returns the specified string (in '0.0.0.0' format) as a packed version. Returns True if successful, False otherwise.

Partial version numbers (for example, '1.5') are allowed. Missing numbers will be appended as zero's. Extra numbers are ignored.

See also:

VersionToStr
PackVersionNumbers
PackVersionComponents