Update a global variable?

Clovertech Forums Cloverleaf Update a global variable?

  • Creator
    Topic
  • #120277
    Tim Jipson
    Participant

      I’m running 6.2 on AIX. I can create and call a global variable from inside an xlate but I can’t change the value. I’ve tried the gv commands and the normal tcl set but the value never updates. Is there a trick to this?

    Viewing 1 reply thread
    • Author
      Replies
      • #120278
        Dirk Engels
        Participant

          Tim,

          have you execute the gvsave command after setting the new value? Otherwise you only update the variable in memory, but do not write it back into the file. I’m using the following

          gvsetvar LASTSCANDATE $scandate; gvsave

          and my global variable LASTSCANDATE will be updated in the file.

        • #120284
          Tim Jipson
          Participant

            I was missing the gvsave, I did not know that was needed after a gvsetvar. Thank you!

        Viewing 1 reply thread
        • You must be logged in to reply to this topic.