keys: Difference between revisions

From Bohemia Interactive Community
m (See also)
mNo edit summary
 
Line 12: Line 12:
|p1= hashMap : [[HashMap]]
|p1= hashMap : [[HashMap]]


|r1= [[Array]] - array of all keys in the HashMap
|r1= [[Array]] of [[Anything]] - array of all keys in the HashMap


|x1= <sqf>keys _myHashMap;</sqf>
|x1= <sqf>keys _myHashMap;</sqf>

Latest revision as of 11:48, 1 January 2026

Hover & click on the images for description

Description

Description:
Retrieves a list of all keys in a HashMap.
Groups:
HashMap

Syntax

Syntax:
keys hashMap
Parameters:
hashMap : HashMap
Return Value:
Array of Anything - array of all keys in the HashMap

Examples

Example 1:
keys _myHashMap;

Additional Information

See also:
HashMap values toArray

Notes

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