[Overview][Types][Procedures and functions][Variables][Index] |
Gets the name for the next identifier following the value specified in Identifier.
Source position: lazutilities.pas line 40
function CreateNextIdentifier( |
const Identifier: string |
):string; |
Identifier |
|
Name for an identifier with the base name and numeric suffix used to generate the return value. |
CreateNextIdentifier examines the value in Identifier to get the numeric characters in the suffix for the identifier name. It converts the digits to an Integer and increments the value. The value is converted to a String and appended as the numeric suffix for the base identifier name.
For example:
AIdent := CreateNextIdentifier('Edit19'); // AIdent = 'Edit20'
CreateNextIdentifier is used to implement commands, menu items, component editors, and design-time layouts in the Lazarus IDE.
Use CreateFirstIdentifier to get the first identifier name for a specified value.
Added in LazUtils version 4.0. Replaces the CreateNextIdentifier routine in the lclproc.pas unit (LCL).
|
Gets the name for the first identifier represented by the value specified in Identifier. |
Version 4.0 | Generated 2025-05-03 | Home |