PreviousActiveX Controls Guide (v10) Next

Unlock

Chapter contents

Applies to:

VAccess

Description

Unlocks single and multiple record locks placed on records in a Pervasive PSQL table by lock bias codes added to Get or Step operation codes passed to the Btrv method.

Syntax

object.Unlock (iLockType) 
 

Part
Description
object
Required. The object placeholder represents an object expression that evaluates to an object in the Applies To list.
iLockType
Required. The type of record lock to remove.

Remarks

The following lock type codes may be passed to the Unlock method.

Part
Constant
Description
0
UL_Single
Remove a Single Record lock from the current record.
-1
UL_CurrentMultiple
Remove a Multiple Record lock from the current record.
-2
UL_AllMultiple
Remove all Multiple Record locks from locked records in the table.

Constant declarations are included in the files GLOBAL.BAS (for 16 bit Visual Basic), GLOBAL.BAS (for Visual Basic), GLOBAL.PAS (for Delphi), and GLOBAL.H (for Visual C++). Include one of these files (whichever is appropriate for your development environment) in your project to use the Unlock constants in your application.


Chapter contents
Book contents

Prev topic: Transaction
Next topic: Update