Returns the loop ID of the loop that the data segment is directly nested under.
Syntax:
Remark:
A loop makes up a group of data segments that can be repeated multiple times in a document. The ID of the first data segment of the group is the ID of the loop. For example, the N1 loop (in ASC/X12) has the following segments
+ LOOP - N1
N1
N2
N3
N4
The loop ID in the above example is "N1" -- taking the ID of the first data segment in the group. The LoopID property on any of the segments in the group, i.e. N1, N2, N3 and N4, will return "N1". In cases where the loop is assigned a custom ID e.g. "2000A", then the LoopID method will return the custom ID.
Sample