This documentation is archived and is not being maintained.

Visual Basic: RDO Data Control

Visual Studio 6.0

CancelUpdate Method (Remote Data)

See Also    Example    Applies To

Cancels any pending updates to an rdoResultset object.



The object placeholder represents an object expression that evaluates to an object in the Applies To list.


The CancelUpdate method flushes the copy buffer and cancels any pending updates from an Edit or AddNew operation. For example, if a user invokes the Edit or AddNew method and hasnt yet invoked the Update method, CancelUpdate cancels any changes made after Edit or AddNew was invoked. Any information in the copy buffer is lost that is, any changes made to the row after the Edit or AddNew methods are invoked, are flushed.

Use the EditMode property to determine if there is a pending operation that can be canceled.

If the CancelUpdate method is used before using the Edit or AddNew methods or when the EditMode property is set to rdEditNone, the method is ignored.

Note   Using the CancelUpdate method has the same effect as moving to another row without using the Update method, except that the current row doesnt change, and various properties, such as BOF and EOF, arent updated.