MessageSegmentCount

Top  Previous  Next

EasyHL7 Object

N/A

Method

MessageSegmentCount()

Parameters

strSegmentName (Optional String = "")

Returns

Numeric (Long)

Example

nSegments = oMSG.MessageCount()

 

Name: MessageSegmentCount(optional strSegmentName = "")

 

Returns: The Number of Segments in the message.  If you pass a segment name (i.e. IN1, NTE, PID etc) in the parameter it returns the number of THOSE segments in the message.