Unit 'FileInfo' Package
[Overview][Types][Classes][Procedures and functions][Index] [#fcl]

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

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

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


Documentation generated on: Dec 15 2025