JVCL Help:TJvBaseDataContexts.DoClearContexts

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Summary

Clears the context list.


Pascal

 procedureDoClearContexts; virtual; abstract;


Description

DoClearContexts clears the list of contexts. It is called by the implementer of IJvDataContextsManager.Clear.
DoClearContexts should only delete deletable contexts, which implies that after a call to DoClearContexts the list isn't necessarily empty. For each context that is removed, the client needs to be notified (both before the deletion as well as after).
The best way to implement this is to iterate the list from the last to the first context and call DoDeleteContext for each of them.


See Also

TJvBaseDataContexts.DoAddContext


About

Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page