[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 1875

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)

This function checks that the value in Entry is within the permitted range, and returns the data pair Value, Name of the corresponding colour in 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

The latest version of this document can be found at lazarus-ccr.sourceforge.net.