croezen
15th February 2011, 13:01
Hi there !

I need to know if a field is set to a value the first time.


before.rewrite:
if tdebo045.stat = tdebo.stat.handeld then
| do my thing
endif


The problem with my code is that this is executed every time someone changes something.
I only need to do something the first time the status has changed to handeld.

Any help would be nice !

JaapJD
15th February 2011, 15:20
Use function "on.old.occ". See the programmers manual for an example.

croezen
17th February 2011, 12:48
Thanks Jaap, it works like a charm!