Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error 130 Record is not locked question
Message
From
15/05/2003 10:15:31
Calvin Smith
Wayne Reaves Computer Systems
Macon, Georgia, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Stonefield
Title:
Error 130 Record is not locked question
Miscellaneous
Thread ID:
00788693
Message ID:
00788693
Views:
54
I am using VFP 7 with Stonefield Database Dictionary. I do transaction processing but sometimes blank records are created and saved in the database. This causes problems with primary keys. I just wrote a routine to find these blank records and try to reuse them. The pseudo code is something like this: ( optimistic table buffering in place)

select table
set index
seek 0
if found()
scatter memvar blank
gather memvar && make sure all the fields are blank so I can recycle
endif

Later when I try to write to this record with "replace" an error 130 - Record is not locked - is generated. What gives here? How can I fix it? I have given up on trying to prevent blank recs from being generated as it seems to be completely out of my control, but at least I would like to be able to recycle them.
A problem is a problem only as long as it has a possible solution. Lacking that, it becomes a FACT!
Reply
Map
View

Click here to load this message in the networking platform