CreateNextIdentifier function
Gets the name for the next identifier following the value specified in Identifier.
Declaration
function CreateNextIdentifier(const Identifier: string): stringArguments
Identifier | Name for an identifier with the base name and numeric suffix used to generate the return value. |
Description
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).
See also
An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.
