Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid Questions
Message
De
21/08/1997 08:38:39
Larry Long
ProgRes (Programming Resources)
Georgie, États-Unis
 
 
À
20/08/1997 08:04:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00045769
Message ID:
00046096
Vues:
29
>IF there is a key (down arrow) to insert record in grid, is there a default key to delete records in grid?
>
>How can I know when the grid lost the focus?
>
>Is there a method that fire just before the deleted method? I would like to show a warning to the user if he confirms the delete operation?
I think that the default delete key is alt+t, but I would use something like ...

ON KEY LABEL SHIFT+DEL Do deleteproc

PROC deleteproc
if not deleted()
DELETE
else
RECALL
endif
return

And use the grid.deleteevent method to prompt the user to confirm deletion.

(I have not done this yet, so it is just my best guess. Let me know if I am wrong or if you find a better way)
Larry //:^)
L.A.Long
ProgRes
lalong1@charter.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform