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

TExtendedStringList.CreateRecord

Allocates memory for a new record instance.

Declaration

Source position: extendedstrings.pas line 55

public procedure TExtendedStringList.CreateRecord(

  Index: Integer

); virtual;

Arguments

Index

  

Ordinal position for the record.

Description

CreateRecord is a procedure used to allocate (and optionally initialize) memory for a new value in the Records property. CreateRecord calls GetMem to allocate the memory size specified in the RecordSize property. When Options includes the value esoClearRecordsOnCreate, the allocated memory is filled with the character value #0. CreateRecord calls the inherited PutObject method to store the new record.

CreateRecord is called when reading a value in the Records property, and when writing a value to the Objects property.

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