Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Counter values from Child loop to Parent loop

Status
Not open for further replies.

vrs1008

Programmer
Sep 16, 2003
62
US
Hi,

We are using WTX8.3 on Windows.

My Input looks like - All the loops repeats (s).

Parent Loop (s)

Child Loop1 (First occurance of (s))
Record1
Record2

GrandChild Loop1.1 (First occurance of (s))
Record1
Record2

Child Loop2 (Second occurance of (s))
Record1
Record2

GrandChild Loop2.1 (First occurance of (s))
Record1
Record2

Output should populate all the records only (Parent & Child) at the same level with the sequence number.

1 Record1
2 Record2
3 Record1
4 Record2
5 Record1
6 Record2
7 Record1
8 Record2

How would I populate the sequence number? How can I pass the counter from the child level to the parent level so it can resume counting from where child or grandchild had left off?


Regards,
Vibhav1008
 
Probably need to see an example of your data. But, it looks like you have two record types. Or, do you have 4 record types 2 for child and 2 for grandchild?

If the former what differentiates the child from the grandchild?

How you would do this would depend on your type tree. 'Index' might work 'Max' might work too.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top