JVCL Help:IJvDataItemsManagement.Delete

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

Search in JVCL Help

 
Search in all projects
 

Summary

Delete an item given an index.


Pascal

 procedureDelete(Index: Integer);


Parameters

Parameters Description
Index: Integer Index of the item to delete.


Description

Delete deletes the item specified by the Index parameter.
If the item list is a static list (i.e. IJvDataItems.IsDynamic returns False) there is a chance the item being deleted is still referenced outside the provider. Using that reference might then lead to Access Violations.
If the item list is a dynamic list (i.e. IJvDataItems.IsDynamic returns True) the deletion will normally be performed (i.e. the reference is removed from the list) but the item might still be referenced and usable after this fact. This will lead to the strange situation of IJvDataItem.GetItems referring to the IJvDataItems interface, but the list no longer contains that item.


See Also

IJvDataItemsManagement.Add, IJvDataItemsManagement.Remove


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