[Overview][Types][Procedures and functions][Variables][Index] |
Gets the name for the first identifier represented by the value specified in Identifier.
Source position: lazutilities.pas line 39
function CreateFirstIdentifier( |
const Identifier: string |
):string; |
Identifier |
|
Name for an identifier used as the base name in the generated value. |
First identifier name for the value specified in Identifier.
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.
Added in LazUtils version 4.0. Replaces the CreateFirstIdentifier routine in the lclproc.pas unit (LCL).
|
Gets the name for the next identifier following the value specified in Identifier. |
Version 4.0 | Generated 2025-05-03 | Home |