Welcome to the new DelphiDabbler Code Library Documentation.

This is a new site that's currently running on alpha code. There are going to be bugs. If you discover any, please report them on the site's issues page (GitHub account required). Thanks.

Warning: Many URLs are going to change. Refer to the README file to discover which library project's documentation has been completed.

StringFileInfo property

Project: Version Information Component

Unit: PJVersionInfo

Class: TPJVersionInfo

Applies to: ~>3.0

property StringFileInfo[const Name: string]: string;

Description

Returns the value of the string file information with given name in the current translation.

This property can return both standard and custom string information. If the current file has no version information, or there is no string information for the current name, then the empty string is returned. Standard string information values are:

TPJVersionInfo provides a dedicated string property with the same name as each of the above standard strings.

If your version information contains a custom string information entry named 'MyString' in the current translation then you can extract its value with code like:

var
  X: string;
begin
  X := PJVersionInfo1.StringFileInfo['MyString'];
  // Do something with X
end;

Where PJVersionInfo1 is an instance of a TPJVersionInfo component.