ComponentOne True DataControl 8.0
SafeMode Property

 

SafeMode Property

If True, ADO recordsets are used with extra caution, avoiding certain problems in various OLE DB providers.

Syntax

TData.SafeMode = boolean

Remarks

Read/Write at run time and design time. Property applies to TData control.

This property is False by default, and you don’t need to bother about it unless you experience problems. This property can be used with CursorLocation = adUseServer to work around problems with some OLE DB providers. Some of OLE DB provider problems are avoided regardless of the SafeMode value. Others require extra activity that can hamper performance, so this activity takes place only if SafeMode is set to True. See Fixing problems with adUseServer for more information.

This property has effect only if DataMode = 0 – DataSource and CursorLocation= adUseServer.

If SafeMode is set to True, TData uses SourceRecordset with extra caution, avoiding OLE DB provider problems.

For example, avoiding provider problems occurring with non-empty Recordset.Filter incurs a performance penalty, so it is necessary to set SafeMode to True in this case.

There are some provider problems that TData is unable to avoid.

Note: At design time, this property is not available in property pages and must be set in the Visual Basic Properties window.

See Also

TData Control

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback