[Overview][Types][Classes][Index] Reference for unit 'ExtendedStrings' (#lazutils)

TExtendedStringList.FreeRecord

Frees memory allocated for the record at the specified position.

Declaration

Source position: extendedstrings.pas line 56

public procedure TExtendedStringList.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

TExtendedStringList.RecordSize

  

Memory allocation size for Records in the class.

TExtendedStringList.Options

  

Contains record options enabled in the class.

TStrings.Objects


Version 4.0 Generated 2025-05-03 Home