SetEscFieldValue

Object Method - SetEscFieldValue()

Parent Object - EasyHL7Message

Returns - Boolean


Name: SetEscFieldValue(ByVal strValue, byRef oSegment, ByVal lngFieldNumber, ByVal lngComponent = 1)

Parameters: 1. strValue (String - The value you wish to set)

2. oSegment (Segment Object)

3. lngFieldNumber (Long -The Field Number within the Segment

4. lngComponent (Long - Which component of the field)

 

Returns: Boolean

 

Programming Note: This method is virtually identical to the SetFieldValue method EXCEPT that strValue is 'Escaped' using the VendorEscData method before the field value is set. Use this method if you are unsure whether your data might contain HL7 reserved characters (the EncodingChars or Carriage Returns, Line Feeds etc.)