Announcement

Collapse
No announcement yet.

Deleting fields

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Deleting fields

    Is there a way to delete all of the fields in a given segment that occur after a certain field?

    I need to delete all fields in the EVN segment, after the 6th field, so that it only contains 6 fields. I'm not seeing an easy way to do this.

  • #2
    msg['OBX'] = msg['OBX.1'] +msg['OBX.2'] +msg['OBX.3'] +msg['OBX.4'] +msg['OBX.5']

    will give you segments 1 - 5;

    Comment


    • #3
      Originally posted by cory_cole View Post
      msg['OBX'] = msg['OBX.1'] +msg['OBX.2'] +msg['OBX.3'] +msg['OBX.4'] +msg['OBX.5']

      will give you segments 1 - 5;
      No, it won't, but this will (assuming there is only 1 OBX segment)
      Code:
      msg['OBX'] = <OBX>{msg['OBX.1'] +msg['OBX.2'] +msg['OBX.3'] +msg['OBX.4'] +msg['OBX.5']}</OBX>

      Comment

      Working...
      X