Point (object)


The Point object provides an object-oriented interface to CIMPLICITY real-time point data. Through the object, you may set and read point values. Methods are supplied to receive the point value as it changes, periodically, or when the alarm state changes.


Dim MyPoint as new Point  ' Creates a new empty point object

Dim ThisPoint as Point    ' Creates a pointer to a point object

Set ThisPoint = MyPoint   ' Now the two object are equal


In the above example, we create a point object in two different ways. The first example using the new keyword, is typically the method you will use. This constructs a point object, at which time you can set the ID of the point and use it. The second example creates a reference to a point and sets it to empty. A run-time error will occur if you attempt to access methods of the object, since it is currently unassigned. You can assign the reference to a particular object by using the set command. In general, you will use this with the PointGetNext function, which takes a list of point objects and returns the first one that changes.

More information

CIMPLICITY Extensions to Basic