BeginUpdate procedure
Prototype: |
procedure BeginUpdate; |
|
Description: |
BeginUpdate procedure is called before changes in the StringList. After changes is used procedure EndUpdate. Without using procedures BeginUpdate and EndUpdate is the script very slower. |
|
Syntax: |
StringList.BeginUpdate; |
|
Part |
Description |
|
StringList |
A reference to an instance of a TStringListWrapper |
|
Return value: |
none |
|
Example:
var
strList : TStringListWrapper;
i : integer;
begin
//...
strList := CreateStringList;
strList.BeginUpdate;
for i:= 0 to 10 000 do
begin
strList.Add('Pinus');
end;
strList.EndUpdate;
strList.Free;
//...
end.
See also:
Free; Duplicates; Sorted; CaseSensitive; BeginUpdate; EndUpdate; Add; AddStrings; Assign; Clear; Delete; Count; Exchange; Move; Find; IndexOf; Insert; Sort; LoadFromFile; SaveToFile; Strings; Text; Delimiter; DelimitedText; NameValueSeparator; IndexOfName; Name; Value; AsVarArray
© 2024 IFER-Monitoring and Mapping Solutions