DBStorage.InsertData
Use this method to insert the contents of the specified Dictionary object into a database row.
Definition
Sub InsertData(vtReserved As Variant,pdispData As Object)
Parameters
vtReserved
A Variant reserved for future use. This parameter is ignored by the InsertData method.
pdispData
An object reference to the Dictionary object or OrderForm object that contains the data to insert.
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
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.InsertData(Null, Order)