Skip to content

TryStrToProgramVersion

Attempts to convert a string to a program version record

Declaration

Source position: fileinfo.pp line 121

function TryStrToProgramVersion(const S: string; 
                               out Version: TProgramVersion) : Boolean;

Arguments

Name Description
S String to parse as program version
Version Variable to receive the parsed program version

Function result

Returns True if the string was successfully parsed

Description

TryStrToProgramVersion parses a version string and converts it to a TProgramVersion. Returns True if the conversion was successful, False otherwise.

See also

Name Description
TProgramVersion Record type for storing four-part version numbers
StrToProgramVersion Converts a string to a program version record
TryStrToVersionQuad Attempts to convert a string to a version quad