[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
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; |
|
Warning: iterating with next in a loop that also posts changes to a field that belongs to the currently active local index is unsafe |
|
| | | ||
| | | ||
| | | ||
| | | ||
TObject |
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).