Sign in Join
FPDoc Onlineexperiment

CreateFirstIdentifier function

In unit LazUtilities

Gets the name for the first identifier represented by the value specified in Identifier.

Declaration

pascal
function CreateFirstIdentifier(const Identifier: string): string

Description

CreateFirstIdentifier removes any numeric characters found at the end of Identifier, and replaces them with the value '1'.

For example:

AIdent := CreateFirstIdentifier('Edit9');
// AIdent = 'Edit1'

CreateFirstIdentifier is used to implement code macros, key mappings, and menu items in the Lazarus IDE.

Use CreateNextIdentifier to get the next name for a specified identifier value.

See also

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