Database management program for multi-user

Database management program for multi-user

I am using Delphi 1.0 and am having a hard time trying to find commands/procedures/modules to lock a record from a Paradox database. What should I do to lock a single record from a database file for exclusive access?

Paradox uses an “implied” locking scheme for locking records. Allyou need to do is start editing the record and it will be locked. You see,the BDE handles the locking for you. In this case, it’s better to check forthe existence of a lock once your user lands on a record using the BDE callDbiIsRecordLocked. Here’s how:

var  IsRecordLocked : Boolean;DbiIsRecordLocked(Table1.Handle, IsRecordLocked);if IsRecordLocked then  …do some stuff.
DbiIsRecordLocked checks for the existence of a record lock, then fills theBoolean input value with appropriate value.

See also  Comparing different methods of testing your Infrastructure-as-Code

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist