>I using delete key from a grid
>
>If i press delete key quickly, operation jams, and suddenly deletes
>more lines of the grid than expected
>
>I have to delete lines in slow mode
>
>Is there any idea to prevent this, even if I press the del key quickly ?
>
>(may be it jams because of scatter and insert commands, besides deleting )
>
>===========================================================
>
>LPARAMETERS nKeyCode, nShiftAltCtrl
>LOCAL loEmail
>IF nKeyCode = 7
> SELECT emails
> SCATTER NAME loEmail MEMO
> INSERT INTO emails_ex FROM NAME loEmail
>
> DELETE
> SKIP
> thisform.refresh()
>ENDIF
>
> thisform.refresh
Put CLEAR TYPEAHEAD after thisform.Refresh(). That way you will clear ALL DELs pressed during execution of the command.
Not tested.
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.