struct.findKey()

Searches recursively through a substructure of nested arrays, structures, and other elements, for structures whose values match the search key in the value parameter.

struct.findKey( Top, Key [, Scope ] )

Returns: Array

Argument Description
Top
struct, required

object from which to start search. This parameter requires an object, not a name of an object.

Key
string, required
Scope
string, optional
  • one (default): returns one matching key.
  • all: returns all matching keys

Examples

There are currently no examples for this function

See also