Reply To: Tcl Help – Removing OBX segment if OBX|5 value is blank

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Tcl Help – Removing OBX segment if OBX|5 value is blank Reply To: Tcl Help – Removing OBX segment if OBX|5 value is blank

#57935
Michael Lacriola
Participant

    You need to build a new message data from the segments that you wish to keep. What I have done in the past is to get msgdta from $mh, foreach segment that does not match your criteria, start adding the segment into a new list. The join the list and set msgdta from the $mh to the new value.

    This works and only takes a few lines of code.