PC-Dmis 2010 MR2 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 control to remove. It can be either a Long or a String. If it is a Long, it is the index number given the control within the ReportControls collection of controls. If it is a String, it is the ID, (or ObjectCode property in the template editor) of the control.

# Description

Removes the specified named or numbered control from the report template This deletes the specified control from the current section of the report template.

# Syntax

Visual Basic

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

# Parameters

NameOrNumber
  Required Variant that indicates which control to remove. It can be either a Long or a String. If it is a Long, it is the index number given the control within the ReportControls collection of controls. If it is a String, it is the ID, (or ObjectCode property in the template editor) of the control.

# Remarks

Be aware that a hidden control called "Report" always exists in the Report template and cannot be deleted or otherwise manipulated. This object is used by PC-DMIS for internal purposes only. For this reason NameOrNum with a value of 1 will try to delete the Report control and will return False.

# See Also

ReportControls Collection

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.