PC-Dmis 2010 MR2 Object Library | Send comments on this topic. | See Object Hierarchy Chart
Remove Method
See Also

Collapse All Expand All

NameOrNum
  Required Variant that indicates which PartProgram object to return. It can be either a Long or a String. If it is a Long, it is the index number of the PartProgram object in the PartPrograms collection. If it is a String, it is the ID of the PartProgram object.

# Description

Closes the part program specified by name or number The Remove function saves, closes, and deactivates the indicated part program. That part program is no longer active in PC-DMIS.

# Syntax

Visual Basic

    Public Function Remove( _
       ByVal NameOrNum As Variant _
    ) As Boolean

# Parameters

NameOrNum
  Required Variant that indicates which PartProgram object to return. It can be either a Long or a String. If it is a Long, it is the index number of the PartProgram object in the PartPrograms collection. If it is a String, it is the ID of the PartProgram object.

# Return Type

Boolean value. Boolean returns true if the function succeeds, false if it fails. If the function was able to close a part program, it returns TRUE, otherwise FALSE.

# See Also

PartPrograms Object

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.