Error 573 - Valid only in a CALLBACK FUNCTION

Error 573 - Valid only in a CALLBACK FUNCTION - FUNCTION = x,y with two parameters is only valid in a CALLBACK FUNCTION.