[Overview][Constants][Types][Classes][Procedures and functions][Variables] Reference for unit 'Classes' (#rtl)

TIdentToInt

Callback for converting identifiers to integers.

Declaration

Source position: classesh.inc line 1614

type TIdentToInt = function(

  const Ident: String;

  var Int: LongInt

):Boolean;

Description

TIdentToIntis a callback used to look up identifiers (Ident) and return an integer value corresponding to this identifier (Int). The callback should return Trueif a value corresponding to integer Identwas found, Falseif not.

A callback of type TIdentToIntshould be specified when an integer is registered using the RegisterIntegerConstscall.

See also

RegisterIntegerConsts

  

Registers some integer-to-identifier mappings.

TIntToIdent

  

Callback for converting integers to identifiers.