Instance.PropertyArray.appendString()

Signature

void appendString (PropertyArrayString arr, String value, long time)

Domain

action

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

NameTypeDescription
arrPropertyArrayA PropertyArray to append an element to.
valueStringA value to append to the PropertyArray, arr.
timelongThe initial history timestamp.

Returns

None.

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}