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

IdentEntry

IdentEntry - checks that a given Entry exists in a Map of colour names

Declaration

Source position: graphics.pp line 1742

function IdentEntry(

  Entry: LongInt;

  var MapEntry: TIdentMapEntry

):Boolean;

Arguments

Entry

  

Entry - a numeric index into the table of colours

MapEntry

  

MapEntry - the record of Value, Name returned from the look-up table of Colors

Function result

True if Entry was a valid index into the Colour look-up table

Description

IdentEntry - checks that a given Entry exists in a Map of colour names

A list of system Colors is specified as a look-up table of indices (Entry) and names (MapEntry)

If Entry is out of range the Result is False

Errors

If Entry is out of the range [0..High(Colours)] the Result is returned as False