RepeatValue

PROPERTY - Read Write

Parent Object - HL7MessageField


Name: RepeatValue(nRepeat, Optional nComponent = 1)

Parameters: 1. nRepeat (Long) Which repeat value are you getting/setting (1-5)

2. nComponent (Long) Which component value are you getting/setting

 

Data Type: String

Description: Get/Set the component value in a repeating field.

 

System Limitations: The HL7MessageField can repeat up to 5 times.

 

How to set a component's value within a field. The following 3 examples ARE FUNCTIONALLY EQUIVALENT.

Example 1:

oField.Value(1) = "Smith"

oField.SubComponentValue(1, 1) = "Smith"

oField.RepeatValue(1, 1) = "Smith"

 

Example 2:

'To really create a repeating field do this

oField.Value(1) = "Smith"

oField.RepeatValue(2,1) = "Jones"

oField.RepeatValue(3,1) = "Davis"

oField.RepeatValue(4,1) = "Wilson"

oField.RepeatValue(5,1) = "House"

 

At this point oField.Value(0) would be (assuming that the Vendor objects RepeatDelimiter is "~":

 

Smith~Jones~Davis~Wilson~House