[Migrated content. Thread originally posted on 21 October 2005]
I have a tree view something like this where ORDER is the ROOT.ORDER #116807
|
10 I WIRE COIL #37
|
20 I 3/8" CONDUIT 500 FT.
|
- 30 I 1" CONDUIT 500 FT.
| |
| |----35 DO NOT HOLD UP ORDER IF NOT IN STOCK
| |----40 SHIP THIS ITEM SEPARATE IF NECESSARY TO:
| |----45 PROJECT 61 STORAGE FACILITY
|
50 I #4A7B JUNCTION BOXES
The objective is to select line 30 and follow the children to the
last child of line 30 to determine that line number.
Having found line 30 with index in item-1 and using
INQUIRE TREE(ITEM-1) ITEM-TEXT IN TREE-DATA
I have the correct text in TREE-DATA. Using
MODIFY TREE NEXT-ITEM TVNI-CHILD GIVING ITEM-1
gives the correct index to line 35. But subsequent execution of
MODIFY TREE NEXT-ITEM TVNI-CHILD GIVING ITEM-1
keeps returning the same line 35 index. So the question:
Are lines 40 and 45 children of line 30 or siblings of line 35?
Does anyone know the correct syntax to accomplish this?
Regards
Vins Nash