Sign in Join
FPDoc Onlineexperiment

IdentEntry function

In unit Graphics

Checks whether a given Entry exists in a Map of color names.

Declaration

pascal
function IdentEntry(Entry: LongInt; out MapEntry: TIdentMapEntry)
: Boolean

Description

IdentEntry checks whether a given Entry exists in a Map of color 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 color in MapEntry.

If Entry is out of range the Result is False.

Errors

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

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.