ProductCatalog.CreateCustomCatalog

Ee797002.c++_on(en-US,CS.10).gifEe797002.vb_off(en-US,CS.10).gif

Use this method to create a new template for a custom catalog.

Definition

Function CreateCustomCatalog(strCCName As String) As _Recordset

Parameters

strCCName

A String that contains the name of the custom catalog to be created.

Return Values

If this method completes successfully, it returns a recordset that contains the properties of the newly created custom catalog.

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_CATALOG_EXISTS &H88980001 There was already a base catalog with the specified name.

Catalog names and custom catalog names must be unique throughout the Product Catalog System.

E_CAT_CUSTOMCAT_EXISTS &H88980022 There was already a custom catalog with the specified name.

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 following table shows the fields that the returned single-row recordset contains.

Field Data Type Description
CustomCatalogName String
256 characters
The name of the custom catalog.
CatalogName String
256 characters
The name of the base catalog.
CustomCatalogID Integer The field name that uniquely identifies custom catalogs.
TimeStamp Timestamp None.

The returned recordset is disconnected and updateable.

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

Example

SET rsMyCustomCat = myProductCatalog.CreateCustomCatalog("SeniorDiscountCatalog")

See Also

ProductCatalog Object

ProductCatalog.DeleteCustomCatalog

ProductCatalog.GenerateCustomCatalog

ProductCatalog.SetCategoryCustomPrice


All rights reserved.