Has to be something easy…

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Has to be something easy…

  • Creator
    Topic
  • #51866
    Mike Campbell
    Participant

      I have an xlate.

    Viewing 3 reply threads
    • Author
      Replies
      • #72060
        David Harrison
        Participant

          set xlateOutVals

        • #72061
          Mike Campbell
          Participant

            Thanks for the note.

            Now, a couple of follow up questions:

             After the proc is called and returns the RESULTS, does it return control to the xlate to the next instruction, or at the top of the process?  

            Also, how to I access the returned value in an if statement?  Nothing I’ve tried seems to work.

          • #72062
            James Cobane
            Participant

              Mike,

              I’m assuming you are executing the proc in the context of an Xlate action (i.e. COPY).  Whatever output field you specified in the COPY action is where the value will be.  So, if you perform a COPY to a temp variable (i.e. @mytemp) you can use that temp variable for subsequent Xlate actions (i.e. IF, COPY, etc.).  The control returns back to Xlate at the point the proc was invoked, so whatever Xlate action is right after the Xlate action that invoked the proc is where it will be.

              Hope this helps.

              Jim Cobane

              Henry Ford Health

            • #72063
              Mike Campbell
              Participant

                The scales have fallen from my eyes.  My problem was I was doing a call to the proc.  When I changed it to a copy it worked as it should.

                Thanks all.  Figured it was something easy!

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