JVCL Help:IJvDataItems.GetItemByIndexPath

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

Search in JVCL Help

 
Search in all projects
 

Summary

Retrieve an item from the list given its index path.


Pascal

 functionGetItemByIndexPath(IndexPath: arrayof Integer): IJvDataItem;


Parameters

Parameters Description
IndexPath: array of Integer array of item index values considered to be the path to the item to retrieve.


Description

GetItemByIndexPath retrieves a Data Item from the list given its index path. If the specified item could not be found the method returns nil.
Each integer in the array is considered to be an index into a list of items. The first integer refers to the IJvDataItems instance on which this method is called. If more index values follow, the item is queried for an IJvDataItems interface. If one is not found the end result will be nil, otherwise the next index is applied to the new found item list.
This process will be repeated until the entire path has been completed, or a specified index fell out of the range for the list on which to apply it (in which case nil will be returned.


See Also

IJvDataItem.GetIndex, IJvDataItems.GetItem, IJvDataItems.GetItemByID


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