Instance.PropertyArray.appendInt()
Signature
void appendInt (PropertyArrayInt arr, int value, long time)
Description
Creates a new propertyAtomInt of value with initial history timestamp time and appends to the end of the
PropertyArray. Use instanceX.arr[instanceX.arr@length] = value for appending with system current time
Parameters
Name | Type | Description |
arr | PropertyArray | A PropertyArray to append an element to. |
value | int | A value to append to the PropertyArray, arr . |
time | long | The initial history timestamp. |
Cautions
Use instanceX.arr[instanceX.arr@length] = value for appending with system current time
Example
Instance.PropertyArray.appendInt (instanceA.intProperty, 111, 1111111111111);
Instance.PropertyArray.appendInt (instanceA.intProperty, 222, 1111111133333);
Result is: instanceA.intProperty
contains:
instanceA.intProperty[len-2] = {value=111,timestamp=1111111111111}
instanceA.intProperty[len-1] = {value=222,timestamp=1111111133333}