FindNextElement method
Builder Syntax |
|
Delphi Syntax |
|
Overview |
Refer to Working with Data Sets. |
Remarks
Note: This method does not specify a tag to use when searching. The search will look for an item with the same tag as the element specified in the CurrentElement property.
Updates the CurrentElement property with the next element in the Data Set that has the specified tag. The search begins with the element specified in the CurrentElement property. The results depend on whether the Data Set is evaluated as a tree or a list.
If the Data Set is evaluated as a tree structure, this method updates the CurrentElement property with the next item on the same level and with the same parent as the element specified in the CurrentElement property, that has tag uTag.
For the sake of these illustrations, the order of siblings is top to bottom.
Please note that the numbering of the items of interest in this first illustration is arbitrary and does not imply order.
If the CurrentElement property contains: |
The CurrentElement property will be updated with: |
Item 1 |
The next sibling (same level, same parent) of Item 1 that has the same tag as item 1, if such an item exists. If such an item does not exist, the CurrentElement is updated with Nil (NULL). |
Item 2 |
The next sibling (same level, same parent) of Item 2 that has the same tag as item 2, if such an item exists. If such an item does not exist, the CurrentElement is updated with Nil (NULL). |
Item 3 |
The next sibling (same level, same parent) of Item 3 that has the same tag as item 3, if such an item exists. If such an item does not exist, the CurrentElement is updated with Nil (NULL). |
If the Data Set is evaluated as a list, this method updates the CurrentElement with the next item in the entire list that has tag uTag. The search begins at the element specified in the CurrentElement property.
For the sake of these illustrations, the order of siblings is top to bottom.
Please note that the numbering of the items in this illustration does indicate the order of the items when the Data Set is evaluated as a list.
If the CurrentElement property contains: |
The CurrentElement property is updated with: |
Item 1 |
The next item in the list that has the same tag as item 1, if such an item exists. If such an item does not exist, the CurrentElement property is updated with Nil (NULL). |
Item 14 |
The next item in the list that has the same tag as item 14, if such an item exists If such an item does not exist, the CurrentElement property is updated with Nil (NULL). |
Item 22 |
The next item in the list that has has the same tag as item 22, if such an item exists. If such an item does not exist, the CurrentElement property is updated with Nil (NULL). |
The following methods will also help you find elements in the Data Set with a specific tag:
The following methods will help you find specific modules in the Data Set:
See Also
Elements: |
FindFirstElement method, FindLastElement method, FindPrevElement method, FindModule method, FindIndexModule method |