OpenMode
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 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, 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 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