ProductCatalog.GetProduct

Ee784386.c++_on(en-US,CS.10).gifEe784386.vb_off(en-US,CS.10).gif

Use this method to retrieve the specified product from a catalog.

Definition

Function GetProduct(varProductID As Variant) As Product

Parameters

varProductID

A Variant that contains the unique identifier of the product.

Return Values

If this method completes successfully, it returns the product specified.

Error Values

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to either standard or custom COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors.

The following standard COM error value has a particular meaning in the context of this method:

S_FALSE

The catalog specified did not exist.

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

SET oMyProduct = myProductCatalog.GetProduct("SKU4005")

See Also

ProductCatalog Object

ProductCatalog.CreateProduct

ProductCatalog.DeleteProduct


All rights reserved.