>LPARAMETERS nButton, nShift, nXCoord, nYCoord > >*NODEFAULT >*!* DEBUGOUT PROGRAM() >ThisForm.lLastWasKey = .F. > >*DODEFAULT(nButton, nShift, nXCoord, nYCoord) >Thanks. As I said in email, no idea why I'd done that. All I can think is that it was left over from something I was trying to do. In any case, I removed the NODEFAULT and the DODEFAULT() and it's working.