Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete Key from a grid
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrats & ententes
Divers
Thread ID:
01332623
Message ID:
01332646
Vues:
7
This message has been marked as the solution to the initial question of the thread.
>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform