Sign in Join
FPDoc Onlineexperiment

TExtendedStringList.FreeRecord procedure

Member of TExtendedStringListpublicIn unit ExtendedStrings

Frees memory allocated for the record at the specified position.

Declaration

pascal
procedure FreeRecord(Index: Integer); virtual

Arguments

Index

Ordinal position for the record.

Description

FreeRecord is a procedure used to free memory allocated for the record at the specified position. FreeRecord calls the inherited GetObject method to get the value stored in the Objects property. If a record has been allocated, and Options contains the value esoFreeObjectsOnDelete, the object instance in Objects is freed. FreeRecord calls FreeMem to release memory allocated for the record, and calls the inherited PutObject method to store the Nil'd object reference.

FreeRecord is called when writing a new value in the Records property, and in methods like FreeAllRecords and Delete.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.