TZF - record locking
"Randall H. Carpenter" <[email protected]> Tue, 11 Nov 2003 22:10:26 -0500
| Newsgroups | gmane.comp.lang.delphi.topaz |
|---|---|
| Message-ID | <[email protected]> |
Is it possible to have multiple records in the same file simultaneously locked? The Apollo database system uses .DBF files and it allows multiple records to be locked simultaneously. The Topaz help file inidcates we should always call unlock before calling any other type of lock. This eliminates the possibility of multiple record locking. It would seem to me you could lock multiple records as long as you return to each record and unlock it. Anyone tried this?
From the Topaz help file:
Purpose: Locks the current record of the current database file. Returns TRUE if it is possible to lock the current record of the the current database. Returns FALSE if the record or file is already locked by another user.
Applies To: [X] TTzDbf [ ] TTzVFile
Declaration: function RLock : Boolean;
Notes: Either RLock or FLock must be used when replacing records in a shared file. Once locked, the record may be unlocked by calling UnLock, closing the file, or terminating the program. Always call UnLock before attempting to issue another lock of any type. See FLock, ALock, UnLock, SetRetryTo, SetNetErrorTo.
Example: repeat until customer.RLock;
customer.ReplaceRec;
customer.UnLock;
--^----------------------------------------------------------------
This email was sent to: [email protected]
EASY UNSUBSCRIBE click here: http://topica.com/u/?clvXPN.a5kvff.Z2NsZHQt
Or send an email to: [email protected]
TOPICA - Start your own email discussion group. FREE!
http://www.topica.com/partner/tag02/create/index2.html
--^----------------------------------------------------------------