Mode Property

Returns the available permissions for modifying data in a Connection. This property is only available for database connections. Read only.

Connection.Mode = [value]

Where object is an object expression that evaluates to one of the controls in the Applies To list, and value is a value or constant as described in Settings.

Settings

The following settings are available for the Mode property:

Constant

(Macros)

Constant

(Scripts)

Value

Description

DBModeRead

nlDBModeRead

1

Indicates read-only permissions.

DBModeReadWrite

nlDBModeReadWrite

3

Indicates read/write permissions.

DBModeShareDenyNone

nlDBModeShareDenyNone

16

Allows others to access the data source with any permissions. Neither read nor write access will be denied to others.

DBModeShareDenyRead

nlDBModeShareDenyRead

4

Prevents others from accessing the data source with read permissions.

DBModeShareDenyWrite

nlDBModeShareDenyWrite

8

Prevents others from accessing the data source with write permissions.

DBModeShareExclusive

nlDBModeShareExclusive

12

Prevents others from accessing the data source with read or write permissions.

DBModeUnknown

nlDBModeUnknown

0

Indicates that the permissions have not yet been set or cannot be determined.

DBModeWrite

nlDBModeWrite

2

Indicates write-only permissions.

See Also

DBConnect action

Applies To

DB Connection object


© 2004-2021 looksoftware. All rights reserved.