RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TWideStrings.EndUpdate Method

Enables the TWideStrings object to keep track of when the list of strings has finished changing.

Pascal
procedure EndUpdate;
C++
__fastcall EndUpdate();

EndUpdate is called automatically by any property or method that changes the list of strings. Call BeginUpdate before directly modifying the strings in the list, and EndUpdate after. When implementing properties or methods that change the list in descendants of TWideStrings, call BeginUpdate before the changes are made, and EndUpdate when the changes are complete. 

TWideStrings simply keeps track of when the list of strings is being changed. Some descendants of TWideStrings use this information to perform certain actions, such as telling a control to repaint, when updates are complete. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!