set: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 20: Line 20:
Changes an '''element''' of given '''array'''.
Changes an '''element''' of given '''array'''.


If '''element''' does not exist, resize index+1 is called to create it.
If '''element''' does not exist, [[resize]] index+1 is called to create it.





Revision as of 04:26, 17 April 2006

back to COMREF

array set element


Operand types:

array: Array

element: Array

Type of returned value:

Nothing

Description:

Format of element is [index, value].

Changes an element of given array.

If element does not exist, resize index+1 is called to create it.


Example:

arrayOne set [0, "Hello"]