Syntax |
Point.Value[(index)] |
Description |
To retrieve or set the value in the point object. The optional index may be supplied to access values of an array point. The first element of the array is at the zero index. The value property uses Engineering Units conversion if supplied by the point. To bypass Engineering Units conversion, use the RawValue property. |
|
Automatic conversion will be performed between data types as needed. The only exceptions are String and BitString points, which can only be assigned from Strings. |
Example |
' This subroutine show automatic type conversion sub main() Dim MyPoint as new Point 'Declare the point object MyPoint.Id ="INTEGER_POINT" 'Set the Id, Point Type is INTEGER ' The string value of "10" is automatically converted to a integer ' value of 10 and place in point object. MyPoint.Value = "10" MyPoint.Set ' Write the point ' The floating point value of 10.01 is truncated to 10 and place ' in the point MyPoint.Value = 10.01 MyPoint.Set ' Write the point end sub |
See also |
Point.RawValue (property, read/write); Point.GetArray (method); Point.GetRawArray (method). |
Notes |
|
CIMPLICITY Extensions to Basic |