Sign in Join
FPDoc Onlineexperiment

TMethodList.Delete procedure

Member of TMethodListpublicIn unit LazMethodList

Deletes the method stored at the specified position.

Declaration

pascal
procedure Delete(Index: Integer)

Description

Delete is a procedure used to delete the method stored at the specified ordinal position in the list. Delete decrements the internal member used for the Count function.

The method instance is physically removed from the list by moving memory allocated beyond the position in Index (if needed) to the requested position. ReAllocMem is called to resize allocated memory to accommodate the new number of items in the Count property.

Use Remove to delete a specific TMethod instance from the Items in the list.

See also

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