Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: stonysmithDo you want to go back just one record, or more than one?
There is a way to retain a value from the previous record. Here is one simple example
if firstExec then pv = 0
if 'MyColumn' <> pv then changed = true else changed = false
emit *,changed
pv = 'MyColumn'
The trick to making this work is:
1) must set an initial value
2) must assign the value you want to retain to the next record AFTER the emit