SegmentList()

Top  Previous  Next

<----------New In Version 4.x---------->

Object: EHL7.EHL7Message

FileName: EHL7.dll

 

METHOD

 

Name: SegmentList()

Parameters: None

 

Returns: String

Description: Returns a pipe ( | ) delimited string of all segments in the message.

 

Programming Note: Passing 0 in nFieldComponent will return the values in ALL components for the field delimited with "^" or an empty string ("") if all components are empty.

 

Example:

 

Snippet:

 

With oMsg  'oMSG is an EHL7Message Object

  .CreateMessage myVendorObject

  .AddSegment "EVN"

  .AddSegment "PID"

  .AddSegment "IN1"

  .AddSegment "IN2"

  .AddSegment "IN1"

  .AddSegment "IN2"

 

  MsgBox .SegmentList()

 

  'Would be:  MSH|EVN|PID|IN1|IN2|IN1|IN2

   

End With