LastComponent()

Top  Previous  Next

Object: EHL7.EHL7Message

FileName: EHL7.dll

 

METHOD

 

Name: LastComponent()

Parameters:

1. oSegment (Segment Object)
2. nFieldNumber (Long) the field number.

 

Returns: Long

Description: Returns the highest sub-component of a field that actually has data.  A return value of 0 means that the field is completely empty (no component has a value), and -1 indicates that an error occurred.

 

 

See Also: SetFieldValue()