Itembyindex, Itembyprogrammaticname, Itembyindex m – Echelon OpenLNS User Manual
Page 660: Itembyprogammaticname
OpenLNS Programmer's Reference
623
acted upon was obtained from a
; otherwise, it is
ignored.
Added to API
LNS Release 3.20.
ItemByIndex
Summary
Retrieves a
NetworkVariable
collection. The object to be retrieved must be specified by its
index value.
This property is only supported by NetworkVariables
collections that belong to Interface or LonMarkObject objects.
If this method is invoked on a different type of network
variable collection (one accessed through the NVHubs or
NVTargets property), an invalid type exception (LCA #2) is
raised. If this exception is encountered, it indicates that the
specified collection does not support the ItemByIndex method.
You can use this method when working with a dynamic
network variable, which has an OLE collection index and
name that may change because of the addition or removal of
other dynamic network variables within its collection.
Availability
Local, full, and lightweight clients.
Syntax
itemObject = itemsColl.
Element
Description
itemObject
object retrieved
from the collection.
itemsColl
collection to be
acted on.
index
An Integer value specifying the
property of the
object
to be retrieved.
Added to API
LNS Release 3.0.
ItemByProgrammaticName
Summary
object from a
collection by its programmatic name.
You can determine the programmatic name of a
object by reading its
property. Alternatively, you can retrieve a
object from this collection by their user names using the
Item
property.
Availability
Local, full, and lightweight clients.