1 Reply Latest reply on Jun 8, 2012 2:28 AM by symbister

    Copy and paste in scripts



      Copy and paste in scripts


      How do you copy and paste in scripts?

      I am in my main layout on a record and want to have a button that will go to a cetain field on the current record and copy the contents, then go to another layout, go into find, paste the content of the field I copied and then perform the find.

      Thats the best way I can explain it.... 

      tia for an example script :p



        • 1. Re: Copy and paste in scripts

          short answer - don't..

          longer answer, use a local variable to 'pick up' the data in table, then use that variable in the find statement

          something like

          Set Variable [$yourvariable; Value:yourtable::yourfield] <note: $var is a local variable in that script only, or $$var is global for the whole file>

          Go To Layout ["yourlayout" (yourtable)]

          Enter Find Mode

          Set Field [yoursecondtable::yourfield; $yourvariable]

          Perform Find