Syntax

stat = ONCHANGEIN(tag[occ])

Arguments

stat, occ: integer

tag: database variable

Meaning

Stat will be 1 if tag[occ] has changed since the previous call of ONCHANGEIN. Otherwise, stat will be 0. The occ indicates which iteration of the database field is concerned.

Example

if onchangein(au[1]){

errorm 'Data has changed'

}

Result

If the first occurrence of the field has been changed, display the message Data has changed.