AMT Datasouth PAL User Manual
Page 158
put
152
put
Description
Store data into a composite object.
Usage
AnyArray IndexInt ElementAny
put
AnyDict KeyAny ValueAny
put
AnyStr IndexInt CharInt
put
AnyArray
Array. Array object into which to store ElementAny.
IndexInt
Integer. When used with AnyArray, index within array at which to store
ElementAny. Arrays begin with index zero. When used with AnyStr, index
within string at which to store CharInt. Strings begin with index zero.
ElementAny
Any. Object to store at index IndexInt within array AnyArray.
AnyDict
Dictionary. Dictionary object into which to store KeyAny and ValueAny.
KeyAny
Any. Key object to associate with ValueAny within dictionary AnyDict.
ValueAny
Any. Value object to associate with KeyAny within dictionary AnyDict.
AnyStr
String. String object into which to store CharInt.
CharInt
Integer. Integer value of character to store within string AnyStr at index
IndexInt.
Comments
In the first variant, the operator store the object ElementAny at index IndexInt within the array
AnyArray. Array indexes range from zero to N-1, where N is the number of elements in the array.
In the second variant, the operator stores the key object KeyAny and the value object ValueAny as
a key + value pair into the dictionary AnyDict. If AnyDict already contains a key + value pair with
a matching key object, put replaces the entry's associated value object with ValueAny.
In the third variant, the operator stores the ASCII character with the value CharInt within the
string AnyStr at the index IndexInt. String character indexes range from zero to N-1, where N is
the number of characters in the string.