Michel,
Between this and the other thread.. do you know about the GetFldState(-1) function? It'll let you more easily determine the fields that have changed.
>>>In my quest of optimizing my code, how about this one:
>>>
>>>
>>>lcField=FIELD(lnCompteur)
>>>IF &lcField<>OLDVAL(FIELD(lnCompteur))
>>>
>>
>>
IF EVAL(FIELD(lnCompteur)) <> OLDVAL(FIELD(lnCompteur))
>
>Thanks, this is what I was looking for.