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

Collapse All Expand All

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

# Description

returns the given named or numbered control This method returns an Object of the control identified by the name or number in the NameOrNum parameter.

# Syntax

Visual Basic

    Public Function Item( _
       ByVal NameOrNumber As Variant _
    ) As Object

# Parameters

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

# Return Type

The Item method returns an Object of the control with the given name or number.

# Remarks

This method returns an Object of the control identified by the name or number in the NameOrNum parameter.

To manipulate existing label template objects, you will need use this method. Once you establish a pointer to an object, you can get or set any of its properties (similar to the LabelControls.Add method). To find the available properties, consult the dockable Properties dialog box inside PC-DMIS.

# See Also

LabelControls Object | Add Method

© Wilcox Associates, Inc. All Rights Reserved.

© 2010 All Rights Reserved.