Logged out, click to login

JEDI Online help - Details



Back to unit JvDataProviderIntf.pas Back Edit Search Administration

IJvDataItem.IsParentOf

Summary
Determines if the item is an ancestor of another item.

Parameters
AnItem - The item to check the parent chain of.
DirectParent - Flag to control if only the direct parent (. IJvDataItems.Parent, Parent>) is checked (DirectParent=True), or if the entire parent
chain is scanned (DirectParent=False).

Description
IsParentOf determines if the item is an ancestor of the specified item. If the item specified by<br> AnItem has this item as its parent the function will return True.<br> <br> If this is not the case but DirectParent is set to False, the entire parent chain is scanned. If during this iterating process this item is indeed found, the function will return True.<br> <br> If either DirectParent was set to True or this item is not an ancestor of the specified item the function will return False.<br>

See Also
IJvDataItem.Items, IJvDataItems.Parent

Last changed by obones on 2009-01-04 21:13:57 CET

Copyright (c) 2004 by the JVCL Team; all rights reserved
Uses PclZip by phpconcept and parts of the PEAR library