Modifing data in PV1.3

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Modifing data in PV1.3

  • Creator
    Topic
  • #50063
    Mason Miller
    Participant

      I am using the following command to split the room and bed in PV1.3

      set var $xlateInVals

      set xlateOutVals “

        [string range $var 4 5]]”

        If the room is 4 characters example 4139A0 it makes it 4139^A and that is correct the problem is if it is  110A0 this has a space before the 1 it comes out {110^A I need to know how to get rid of the {.  Any suggestions

      Viewing 2 reply threads
      • Author
        Replies
        • #64727
          Tom Rioux
          Participant

            If your outbound side has two fields designated, such as:

            PV1.#3.[0]

            PV1.#3.[1]

            Then change this command:

            set xlateOutVals “

              [string range $var 4 5]]”

              to this:

              set xlateOutVals “[string range $var 0 3] [string range $var 4 5]”

              Just make sure there is a space between the two string commands.  I’m doing something similar here and it works fine.

              Thanks….

              Tom Rioux

            1. #64728
              Mason Miller
              Participant

                Thanks

              • #64729
                James Nelson
                Participant

                  Instead of:

                  set var $xlateInVals

                  you should use:

                  set var [lindex $xlateInVals 0]

                  or:

                  lassign $xlateInVals var

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