Instance.PropertyArray.appendString()
Signature
void appendString (PropertyArrayString arr, String value, long time)
Description
Creates a new propertyAtomString 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 | String | 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.appendString (instanceA.stringProperty, "Hello", 1111111111111);
Instance.PropertyArray.appendString (instanceA.stringProperty, "There", 1111111133333);
Result is: instanceA.stringProperty
contains:
instanceA.stringProperty[len-2] = {value="Hello",timestamp=1111111111111}
instanceA.stringProperty[len-1] = {value="There",timestamp=1111111133333}