PA_LockDatabase

4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next

version 2003


PA_LockDatabase

ParameterTypeDescription
This command does not require any parameters

Description

The routine PA_LockDatabase locks the current database.

PA_LockDatabase must be called before performing any log operation to ensure that no process will manipulate data (add record, modify, delete, etc.) while the plug-in uses the log file.

NOTE

A call to PA_LockDatabase must be "closed" by a call to PA_UnlockDatabase. If this is not done, the data base will stay locked.

Example

Lock-unlock the database.

   PA_LockDatabase();
   /* . . . make log actions . . . */
   PA_UnlockDatabase();

See Also

PA_UnlockDatabase.

Error Handling

PA_GetLastError always returns eER_NoErr


4D - Documentation   Français   English   German   4D Plugin API, Command Theme List   4D Plugin API, Command Alphabetical List   Back   Previous   Next