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

Collapse All Expand All

NameOrNumber
  Required Variant that indicates which Section object to remove. It can be either a Long or a String. If it is a Long, it is the index number of the Section object in the Sections collection. If it is a String, it is the ID, or name, of the Section object.

# Description

Removes a section by name or number

This method removes or deletes the Section object identified by the NameOrNum parameter.

# Syntax

Visual Basic

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

# Parameters

NameOrNumber
  Required Variant that indicates which Section object to remove. It can be either a Long or a String. If it is a Long, it is the index number of the Section object in the Sections collection. If it is a String, it is the ID, or name, of the Section object.

# Return Type

Boolean value that determines whether or not the specified section was removed. If True then the section was removed. If False then the section either remained or didn't exist in the first place.

# See Also

Sections Object

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.