Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete button
Message
De
18/07/2008 10:05:54
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01332259
Message ID:
01332267
Vues:
7
>How can I delete a record in a grid by click the delete button of the keyboard ?

I guess you can intercept the KeyPress() Event.

Suggestion: Have a menu command that invokes a form method, like _Screen.ActiveForm.OnDelete(), and give it a shortcut key like Ctrl-D. "Del" won't be appropriate in this case, because the user might use it for editing within a TextBox.

By the way, you don't do editing within the Grid, do you? For in this case, deleting an entire record with "Del" won't be appropriate, either.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform