|
Value |
|
PROPERTY - Read Write Parent Object - HL7MessageField Name: Value(Optional nComponent = 1) Parameters: 1. nComponent (Long) Which component value are you getting/setting
Data Type: String Description: Get/Set the component value in a field component. Value is DYNAMICALLY allocated so calling oField.Value(25) = "Hello World" would automatically extend the size of the field to 25 components (the system supports up to 50 components per field).
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: Use .Value(0) to set the ENTIRE field's value at once
Dim sValue As String sValue = "Smith^Mary^M~Jones^Mary^M" oField.Value(0) = sValue
After Example 2, MaxComponent would be 3 and FieldRepeats would be 2. Assuming that the ComponentDelimiter is ^ and the RepeatDelimiter is ~
|