Extensionbyhandle, Move, Open – Echelon OpenLNS User Manual

Page 706

Advertising
background image

OpenLNS Programmer's Reference

669

ExtensionByHandle

Summary

Retrieves an Extension object by its Handle property. This

method can be used to retrieve an extension record in the

global database—regardless of the collection containing the

Extension object. This may be particularly useful when

processing events reported by OnChangeEvent with

objectType of lcaChangeEventExtensions, and

networkHandle equal to 0.

Availability

Local, full, and lightweight clients.

Syntax

extension = objectServer.ExtensionByHandle

Element

Description

Extension

The Extension object.

system

The ObjectServer

object.

handle

The handle of the Extension object to be

retrieved.

Added to API

OpenLNS.

Move

Summary

This is a standard ActiveX control property used for visual

controls. This property is not applicable for the Object Server

Open

Summary

Opens the OpenLNS global object server database. To

initialize the ObjectServer, an application must do the

following (see the OpenLNS Programmer’s Guide for more

detailed information):
1. Open the global database using the Open method of the

ObjectServer.

2. Select or create a Network object.
3. Open the network database using the Open method of the

Network object.

4. Select or create a System object.

5.

Initialize the System object by using the Open method of

the System object.

Invoking the Open method of the ObjectServer opens the

global database. The database path name is read from the

Windows System Registry which may be set using the

DatabasePath property of the ObjectServer.

Before invoking this method, the application needs to specify

whether it is a remote client by setting the

RemoteFlag

property. In addition, you can use the

Flags

property of the

ObjectServer to specify a series of global flags that determine

how LNS will behave with the client application’s processes,

including the type of network variable update used, post-

Advertising