Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How do you handle Grid Delete Column/Method?
Message
 
 
To
05/05/1998 19:32:01
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00096634
Message ID:
00097267
Views:
24
>>Erik:
>>
>>Dragan is fairly correct in that this is the behaviour I observe. However, to overcome the problems, I have had to eliminate the delete column and add a delete button. When you click the little delete square, the deleted() method fires, but the actual delete of the record does not occur until after the method completes. I have tried DoDefault(), etc., including deleting the record number passed to the method. What then shows on the grid, when I issue a delete, are 2 deleted records -- the one I deleted and the next or previous record. The behaviour is totally unpredictable (at least to me).
>>
>>However, I did not use Dragan's exact suggestion, which I will try (I left off the nodefault at the end):
>>
>>dodefault()
>>do_my_code_here
>>nodefault
>
>It looks like you can issue nodefault and then delete the record yourself. Works for me.

Yes it does. What finally worked perfectly was
   parameter nRecNo
   delete record nRecNo in MyTable
   run.my.code.here()
   nodefault

I purposely left out DoDefault() because I can't imagine ever having default code in the original sub-class, at least not in this method.
Mark McCasland
Midlothian, TX USA
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform