Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 1.11 KB

TPJResourceFile-EntryExists.md

File metadata and controls

26 lines (16 loc) · 1.11 KB

EntryExists method

Project: Resource File Unit

Unit: PJResFile.

Class: TPJResourceFile

Applies to: ~>1.0

function EntryExists(const ResType, ResName: PChar;
  const LangID: Word = $FFFF): Boolean;

Checks whether a resource entry with the specified type, name and language id exists. The search can ignore the resource name and or language id in which case the method succeeds if any resource matching 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:

True if a resource matching the search criteria exists and False if not.