PC-DMIS 2021.1 Object Library
Item Method
See Also  Send Topic Feedback | See Object Hierarchy Chart
NameorNum
Required Variant that indicates which Machine object to return. It can be either a Long or a String. If it is a Long, it is the index number of the Machine object in the Machines collection. If it is a String, it is the ID of the Machine object.
PCDLRN ActiveX DLL > Machines Object : Item Method

Glossary Item Box

Description

This returns a specific Machine object from a list of machines.

Syntax

Visual Basic
Public Function Item( _
   ByVal NameorNum As Variant _
) As Machine

Parameters

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

Return Type

There may be several machines named "OFFLINE". To avoid possible confusion with off-line machines, use the index number with these machines. Since the Item method is the default, the function name can be omitted.

See Also

Copyright © 2020. Hexagon Manufacturing Intelligence – Metrology Software, Inc. All Rights Reserved.