Stripping out quotation marks

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Stripping out quotation marks

  • Creator
    Topic
  • #47930
    Mark Perschbacher
    Participant

      We are building an xlate between a VRL and HL7.  The data in the VRL fields are enclosed in quotes.  I am a tcl beginner, but I know there is a proc I can add to the COPY action that will strip the quotes out.  My guess would be that the set commentlist and set xlateOutvals commands would be a start.  Can one of you tcl hotshots fill in the rest?

    Viewing 2 reply threads
    • Author
      Replies
      • #57097
        Jim Kosloskey
        Participant

          Here is a proc (and doc) if you want to use it.

          Jim Kosloskey

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

        • #57098
          Mark Perschbacher
          Participant

            Thanks for the doc and proc, it looks like just what I need.  So if I am reading the doc correctly, within the xlate, I create a COPY command for the three arguments, and then a final one which includes the source and destination?  I need to use this proc on all 20 fields of the VRL, so do I need to create the aforementioned three COPY commands, and then add 20 more with the @xlt_trim statements and the source and destination?

          • #57099
            James Sedlmeyer
            Participant

              Mark

              How did this work for you

              Thanks

              Jim

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