PreviousActiveX Controls Guide (v10) Next

OpenMode

Chapter contents

Applies to:

VAccess

Description

Sets or returns the open mode of the file associated with the control.

Remarks

This property determines the file open mode of the Pervasive PSQL file associated with the VAccess control. Possible open modes are:

0 - normal
1 - accelerated access
2 - read only
3 - verify
4 - exclusive


Note
Verify mode is deprecated. If you set OpenMode to Verify, Pervasive PSQL will open the file in normal mode.

The default value for this property is 0 (normal). For most purposes this is the mode of choice. Files may also be opened for exclusive access, which prohibits another process from opening the file, or in read only mode, which prohibits the application from making changes to the file. The accelerated access and verify modes have no effect in Pervasive PSQL.

The current value of OpenMode is used when a database is opened. To change the mode, you must close and re-open the database in question.

See Also:

Affects: Open


Chapter contents
Book contents

Prev topic: OemString
Next topic: OwnerName