True DataControl 8.0 Reference > True DataControl Control > TData Control Properties > Mode Property |
Mode Property
Describes the mode in which the current connection is opened.
TData.Mode = value
Read/Write at run time and design time. Property applies to TData control.
Values |
Description |
0 – adModeUnknown (default) |
Indicates that the permissions cannot be determined |
1 - adModeRead |
Indicates read-only permissions |
2 - adModeWrite |
Indicates write-only permissions |
3 - adModeReadWrite |
Indicates read/write permissions |
4 - adModeShareDenyRead |
Prevents others from opening connection with read permissions |
8 - adModeShareDenyWrite |
Prevents others from opening connection with write permissions |
12 - adModeShareExclusive |
Prevents others from opening connection |
16 - adModeShareDenyNone |
Allows others to open connection with any permissions |
This property determines permissions for modifying the data that the provider should use on the current connection, with the TData control’s SourceRecordset. This property is only relevant in data source mode (DataMode = 0 - DataSource).
Mode is a standard ADO property. It can be set at any time during the control’s lifetime, but it will take effect only if set at design time, in WillOpenData event or after the Refresh method is called.
Notes: At design time, this property is not available in property pages and must be set in the Visual Basic Properties window.
Using client-side cursors, (CursorLocation = 3 – adUseClient) the Mode property can only be set to 0 – adModeUnknown.
See Also