set: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
mNo edit summary
Line 10: Line 10:
____________________________________________________________________________________________
____________________________________________________________________________________________


| array '''set''' element |= Syntax
| [[Array]] '''set''' [index, value] |= Syntax


|p1= array: [[Array]] |= Parameter 1
|p1= index: [[Number]] |= Parameter 1


|p2= element: [[Array]] |= Parameter 2
|p2= value: [[Anything]] |= Parameter 2


| [[Nothing]] |= Return value
| [[Nothing]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>arrayOne set [0, "Hello"]</pre> |= Example 1
|x1= <pre>_arrayOne set [0, "Hello"]</pre> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 03:58, 30 August 2007

Hover & click on the images for description

Description

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.
Groups:
Uncategorised

Syntax

Syntax:
Array set [index, value]
Parameters:
index: Number
value: Anything
Return Value:
Nothing

Examples

Example 1:
_arrayOne set [0, "Hello"]

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section