Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 1.09 KB

TPJResourceFile-FindEntry.md

File metadata and controls

26 lines (16 loc) · 1.09 KB

FindEntry method

Project: Resource File Unit

Unit: PJResFile.

Class: TPJResourceFile

Applies to: ~>1.0

function FindEntry(const ResType, ResName: PChar;
  const LangID: Word = $FFFF): TPJResourceEntry;

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

Parameters:

  • ResType: The type of the resource to be found as either an ordinal or string type.
  • ResName: The name of the resource to be found as either an ordinal or string type. If just the first resource of the given type is required then nil can be specified here.
  • LangID: The language id of the required resource. If only the first matching resource for the given type and name is required this parameter can be left out (or $FFFF supplied). To find a language neutral resource specify 0 here.

Returns:

A reference to the found resource entry or nil if no matching resource was found.