DBStorage.LookupMultipleData

Ee799226.c++_on(en-US,CS.10).gifEe799226.vb_off(en-US,CS.10).gif

Use this method to retrieve multiple results from the database table. If the data is found, this method creates a SimpleList object that contains OrderForm or Dictionary objects, depending on the vtProgID parameter passed to the InitStorage method.

Definition

Function LookupMultipleData(vtReserved As Variant,pvtKeys As Variant,pvtValues As Variant) As Variant

Parameters

vtReserved

A Variant reserved for future use. The LookupData method ignores any value stored in this parameter.

pvtKeys

A Variant that identifies the columns in which to search for the data. This Variant can be either a SimpleList object or an Array.

pvtValues

A Variant that identifies the values for which to search. This parameter can be either a SimpleList object or an Array.

Return Values

If this method completes successfully, it returns a Variant that references a SimpleList object that consists of one or more Dictionary objects, one for each row of data returned.

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)
OrderFormStorage.LookupMultipleData(Null, Array("order_id"), _
Array("Order_tmp"))

See Also

DBStorage Object

DBStorage.InitStorage

DBStorage.GetData

DBStorage.LookupData


All rights reserved.