Remove Method (PIHeadingSets collection)

             

Removes a PIHeadingSet from the PIHeadingSets collection.

 

Syntax

object.Remove varPIHeadingSet

The Remove method syntax has these parts:

Part

Description

object

An object expression that evaluates to a PIHeadingSets collection.

varPIHeadingSet

VARIANT containing the PIHeadingSet to remove, or its Name, UniqueID, or Index in the collection.

 

Remarks

This method permanently removes the PIHeadingSet from the database. You cannot remove this heading set until you remove all of the PIHeading's from the PIHeadings collection of the PIHeadingSet.

 

Trappable Errors

In addition to generic errors (such as Out of Memory), the following errors may occur:

Error

Description

pseLOADPIHEADINGSETS

Unable to load the existing collection of PIHeadingSet from the server.

psePIHEADINGNOTFOUND

The requested PIHeadingSet was not found on the server.

pseNOGENSERVER

The underlying server abstraction layer could not be accessed.

pseREMOVEPIHEADINGSET

Unable to remove the PIHeadingSet to the server. The error description typically contains more information. Most likely is that the user didn't have permission.

Enabling Operational Intelligence