LPARAMETERS nRecNo local lcRecordSource, lnSelect lcRecordSource = This.RecordSource lnSelect = select() select (lcRecordSource) if This.RecordSourceType < 2 goto record nRecNo This.SetFocus() if This.lDeleteWarning && custom property of my grid class local lnRetVal lnRetVal = MessageBox("Please confirm -- DELETE Current Record?", MB_ICONQUESTION + MB_YESNO + MB_DEFBUTTON2, "Warning!") if lnRetVal <> IDYES nodefault return 0 endif endif goto record nRecNo ThisForm.LockScreen = .t. delete next 1 skip -1 if bof() locate endif if !eof() nRecNo = RecNo() locate This.Refresh() This.SetFocus() goto nRecNo endif This.Refresh() ThisForm.LockScreen = .f. endif NoDefault select (lnSelect) Return