Category.RemoveProduct

Ee825321.c++_on(en-US,CS.10).gifEe825321.vb_off(en-US,CS.10).gif

Use this method to remove a product from this category.

Definition

Sub RemoveProduct(varProductID As Variant)

Parameters

varProductID

A Variant that contains the product ID.

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 either standard or custom COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors.

The following table shows the custom COM errors that this method can return.

Constant Value Description
E_CAT_PRODUCT_DOESNT_EXIST &H8898001E The product you 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

myCategory.RemoveProduct "Widget"

See Also

Category Object

Category.AddProduct


All rights reserved.