Eliminate Initial Whitespace Only in OBX.5

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Eliminate Initial Whitespace Only in OBX.5

  • Creator
    Topic
  • #52314
    Gordon Koch
    Participant

      I hope someone can help with a need I have to eliminate the initial blank or whitespace in the OBX.5 field. I do not know how to regsub only the initial whitespace until the first characters or real data. For example:

      OBX|5|TX|MICRO||     XXXXXX  XXXXXX  XXX

      should be

      OBX|5|TX|MICRO||XXXXXX  XXXXXX  XXX

      A little tcl help here…

      Thank you

    Viewing 1 reply thread
    • Author
      Replies
      • #73773
        Jim Kosloskey
        Participant

          Gordon,

          I have a tcl proc that will do that but the essential Tcl command would be the string trimleft command. Do a help on string in hcitcl or tcl – or look in the Help on the GUI for the structure of the command.

          email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

        • #73774
          Gordon Koch
          Participant

            Thank you Jim. I should have thought of that.

        Viewing 1 reply thread
        • The forum ‘Cloverleaf’ is closed to new topics and replies.