-is there a simpler/shorter way to check which record (.dbf) is locked/unlocked.
currently i lock 'each' record to get the lock status, then unlock it - if lock was successful (after status determined).
-are rlock & dbrlock similar - locks only the current record. (without unlocking any 'other' record/s that are locked)
-if similar, which should be preferred in coding.
-will dbrunlock(recno), unlock just 'that' recno.
"Exclusive" open is another way to be sure.Only if you are using DbRLock():
DbRLockList()
This only works if your one executable is the one doing locking. If another process is running, they could have a lock on a record you'd not know about. "Brute force" (or using a server side database engine) is the only way to be sure. And of course
Il 24/01/2023 05:49, timepro timesheet ha scritto:
-is there a simpler/shorter way to check which record (.dbf) is locked/unlocked. currently i lock 'each' record to get the lock
status, then unlock it - if lock was successful (after status
determined).
-are rlock & dbrlock similar - locks only the current record.
(without unlocking any 'other' record/s that are locked)
-if similar, which should be preferred in coding.
-will dbrunlock(recno), unlock just 'that' recno.
Only if you are using DbRLock():
DbRLockList()
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 251 |
Nodes: | 16 (0 / 16) |
Uptime: | 03:23:22 |
Calls: | 5,571 |
Files: | 11,686 |
Messages: | 5,131,680 |