Unit 'msebufdataset' Package
[Overview][Constants][Types][Classes][Procedures and functions][Index] [#msegui]

tlocalindex

[Properties (by Name)] [Methods (by Name)]

Warning: iterating with next in a loop that also posts changes to a field that belongs to the currently active local index is unsafe

Declaration

Source position: msebufdataset.pas line 384

type tlocalindex = class(townedpersistent)

public

  constructor create(); override;

  destructor destroy; override;

  function find();

  

Looks up a row by the values of an index, faster than tdataset.locate on a large table since it uses the index instead of a sequential scan

  function findvariant();

  function unique();

  procedure deleteduplicates;

  function getbookmark();

  

Returns the bookmark of the record at position arecno in this index's order

  property desc: Boolean; [rw]

  property default: Boolean; [rw]

published

  property fields: tindexfields; [rw]

  property options: localindexoptionsty; [rw]

  property active: Boolean; [rw]

  property name: string; [rw]

end;

Inheritance

tlocalindex

  

Warning: iterating with next in a loop that also posts changes to a field that belongs to the currently active local index is unsafe

|

townedpersistent

|

tvirtualpersistent

|

tpersistent

|

TObject

Description

Warning: iterating with next in a loop that also posts changes to a field that belongs to the currently active local index is unsafe — posting such a change reorders the record within that index, so the iteration can skip or revisit records. This is safe only if the posted changes do not touch a field of the active index (e.g. by temporarily deactivating the index, or using a different one for the iteration than the one being modified).


Documentation generated on: 2026-10-03