AnsweredAssumed Answered

Set variable and Set field while looping

Question asked by malijames on Nov 27, 2013
Latest reply on Nov 29, 2013 by philmodjunk

Title

Set variable and Set field while looping

Post

     i want to perform a find on a table

     loop and

     duplicate the found set

     set variable on a field  called   Balance ( in the duplicated set only) . the variable name is $oldbalance

     while looping

     setfield  this field  PREV_Bal    as   $oldbalance for each record in ( in the duplicated set only)

     but it only set the first variable for all the duplicate

      

     i know something is missing somewhere   . Any assistance please

      

     this is my script that performs find and duplicate the found set correctly but the set variables and set field for each duplicate dont work

filemakk.jpg

Outcomes