Itembyindex, Itembyprogrammaticname – Echelon OpenLNS User Manual

Page 481

Advertising
background image

OpenLNS Programmer's Reference

444

lcaTypeSpecLmo, or it is invalid in any other way.

Availability

Local, full, and lightweight clients.

Syntax

newLonmarkObject =

lonMarkObjects.AddFromTypeSpec(fbName, lmoTypeSpec

)

Element

Description

newLonMarkObjec

t

The new LonMarkObject object to be

created.

lonMarkObjects

The collection of LonMarkObjects

objects to be added.

lmoName

A String containing the name of the

LonMarkObject.

lmoTypeSpec

The TypeSpec object to be used as

the source for the new

LonMarkObject.

Added to API

OpenLNS.

ItemByIndex

Summary

Retrieves a

LonMarkObject

object from a

LonMarkObjects

collection. The

LonMarkObject

object to be retrieved must be

specified by its index value.

Availability

Local, full, and lightweight clients.

Syntax

itemObject = itemsColl.

ItemByIndex

index

Element

Description

itemObject

The

LonMarkObject

retrieved from the

collection.

itemsColl

The

LonMarkObjects

collection to be

acted on.

index

An Integer value specifying the

Index

property of the

LonMarkObject

to be

retrieved.

Added to API

LNS Release 3.0.

ItemByProgrammaticName

Summary

Retrieves a

LonMarkObject

object from a

LonMarkObjects

collection by its programmatic name.
You can determine the programmatic name of a

LonMarkObject

by reading its

ProgrammaticName

property.

Alternatively, you can retrieve a

LonMarkObject

from these

collections by their user names using the

Item

property.

Availability

Local, full, and lightweight clients.

Advertising