ProductCatalog.RemoveSpecificationSearchClause
Use this method to remove the last constraint from a specified specification search.
Definition
Function RemoveSpecificationSearchClause(pstrSearchHandle As Variant) As String
Parameters
pstrSearchHandle
A Variant that contains the specification search handle from which a constraint is to be removed.
Return Values
If this method completes successfully, it returns a String that contains the removed clause.
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
This method always removes the last constraint that was added to the search using the AddSpecificationSearchClause method. The returned string will be in the same form as the original constraint.
For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.
Example
'strSearchHandle contains a search handle returned
'from AddSpecificationSearchClause or BeginSpecificationSearch
'strRemovedClause will contain the removed clause after the call returns.
Set strRemovedClause = myProductCatalog.RemoveSpecificationSearchClause(strSearchHandle)