Share via


DBStorage.CommitData

Ee810965.c++_on(en-US,CS.10).gifEe810965.vb_off(en-US,CS.10).gif

Use this method to update the database table based on the contents of the specified Dictionary or OrderForm object.

Definition

Sub CommitData(vtReserved As Variant,pdispData As Object)

Parameters

vtReserved

A Variant reserved for future use. The CommitData method ignores the value of this parameter.

pdispData

An object reference to the OrderForm or Dictionary object that contains the updated data.

Return Values

None.

Error Values

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

Remarks

The CommitData method does not support database tables containing fields of type TimeStamp. Instead, use the vtChanged parameter to the DBStorage.InitStorage method, which provides the same functionality as using TimeStamp fields.

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

Example

' Order is a Commerce.OrderForm object; OrderFormStorage is 
' an initialized Commerce.DBStorage object

Order.order_id = "Order_tmp"
Order.shopper_id = "Shopper_tmp"
OrderFormStorage.CommitData(Null, Order)

See Also

DBStorage Object

DBStorage.InitStorage

DBStorage.InsertData


All rights reserved.