Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Record mysteriously getting locked
Message
From
30/09/1999 10:17:39
Walter Meester
HoogkarspelNetherlands
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00270993
Message ID:
00271050
Views:
18
>What happens is that the DELETE command fails saying that the record is in use by another user -- But this is a temporary cursor that I created and am the only one using -- I don't understand how the record/file could be "locked" by another user.

Yeah, i admit this is a nasty one. I think that if you get the focus off the Grid before you delete the record, might solve your problem:

THISFORM.SomeTextBox.SetFocus
DELETE
THISFORM.Grid.Setfocus

Simular trouble occurs when your cursor is positioned in the grid, in a field with a validation and you try to insert a record.

I would recommend alway to get the focus of the grid when Appending or deleting records.


Hope this helps.

Walter,
Previous
Reply
Map
View

Click here to load this message in the networking platform