-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: | 296 |
Nodes: | 16 (2 / 14) |
Uptime: | 82:51:19 |
Calls: | 6,658 |
Calls today: | 4 |
Files: | 12,203 |
Messages: | 5,333,436 |
Posted today: | 1 |