Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SET DELETED not working??
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00115018
Message ID:
00115046
Views:
16
Hi Jerry,

I don't know if GO RECNO() would solve your problem, but try it after the DELETE. Moreover, what code do you have in the LostFocus()?

Make sure that the delete is called just once. Try putting a WAIT WINDOW and check out with ENTER and UP ARROW and see that it fires just once.

>Thanks for your reply, but how do I use this command? Where do I use it? I get the message 'Record is out of range' the times I've tried.
>
>
>Thanks,
>
>Gil
>
>
>>Hi Gil,
>>
>>This one is for the second time today. Try GO RECNO()
>>
>>>I have the strangest thing happening (again). I have set deleted ON in my form, and a grid which its data source is a view. On the lostfocus method I have code that deletes the current field if empty, so, when I press ENTER, it fires the code, deletes the record and takes it out of sight(set deleted working), but, when I use the arrow UP key, it fires the code, deletes the record but STILL I can see it on the grid (set deleted not working), inclusive, the delete mark shows to the left of the grid. What's going on? Why this type of behaviour on something so basic? I've used REFRESH and everything you can think of, but nada.
>>>
>>>Any input is highly appreciated.
>>>
>>>Thanks,
>>>
>>>Gil
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform