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.

FindEntryIndex method

Project: Resource File Unit

Unit: PJResFile.

Class: TPJResourceFile

Applies to: ~>1.0

function FindEntryIndex(const ResType, ResName: Pchar;
  const LangID: Word = $FFFF): Integer;

Finds the index in the Entries property of a resource entry with the given type, name and language id. The search can ignore the resource name or language id in which case first entry that matches the provided information is accepted.

Parameters:

Returns:

The index of the found resource in the Entries property or -1 if no resource was found.