Framework EDI Reference. Methods and Properties
ediDataElement. RepeatCount

Returns the number of instances a data element has been repeated. This value is valid only for the first instance of the element, otherwise it returns zero.

Syntax:

Example:

Set oElement = oSegment.DataElement(1)
For i = 1 To oElement.RepeatCount
    Set oElementRepeat = oElement.GetRepeatInstance(i)
    txtTypeProduct(i).Text = oElementRepeat.Value
Next

Sample

P_RepeatCount.zip