XLT writing to file

Clovertech Forums Cloverleaf XLT writing to file

  • Creator
    Topic
  • #116667
    David Teh
    Participant

      Hi folks,

      I am using a file as a counter.

      An xlate will read the existing value from the file, output to @ctr, get stuff done and increment the value by 1.

      So far so good.

      However, I can’t seem to write that new value back to the counter from the xlate.

      Please advise. TIA!

      • This topic was modified 4 years, 7 months ago by David Teh.
    Viewing 4 reply threads
    • Author
      Replies
      • #116669
        James Cobane
        Participant

          David,

          Are you using the ‘counter’ extensions available within Cloverleaf (i.e. ‘CtrNextValue’)?  If not, look at the information available within the Cloverleaf ‘Reference Guide’ under Tcl Extensions, Counter commands.

          Hope that helps.

          Jim Cobane – Henry Ford Health System

        • #116670
          David Teh
          Participant

            OK Jim, will check it out!

            Thanks!!!!

          • #116671
            David Teh
            Participant

              Very happy!

              Works like a charm!

              And it’s been there since early 5.x version! What have I been missing? 😛

            • #116680
              Charlie Bursell
              Participant

                Actually David those command have been there much longer that that 🙂  Even the old HCI Link days.

              • #116683
                David Teh
                Participant

                  Always something new (and fun) to discover these 17 years with Cloverleaf.

                  Shucks, this is gonna be the last year…..moving on the Rhapsody…oh well……

              Viewing 4 reply threads
              • You must be logged in to reply to this topic.