Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid Questions
Message
From
21/08/1997 08:38:39
Larry Long
ProgRes (Programming Resources)
Georgia, United States
 
 
To
20/08/1997 08:04:28
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00045769
Message ID:
00046096
Views:
34
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform