RAD Studio VCL Reference
|
Enables an application to gain sole access to a Paradox or dBASE table.
property Exclusive: Boolean;
__property Boolean Exclusive;
Use Exclusive to prevent other applications from accessing a Paradox or dBASE table while it is open in this application. Before opening the table, set Exclusive to true. A table must be closed before changing the Exclusive property.
When Exclusive is true, then when the application successfully opens the table, no other application can access it. If the table for which the application has requested exclusive access is already in use by another application, an exception is raised. To handle such exceptions, wrap the code that opens the table in a try..catchexcept block.
Do not set Exclusive to true at design time if you also set the Active property to true at design time. In this case an exception is raised because the table is already in use by the IDE.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|