FindKey

Last Updated2022-09-05
Created At2022-09-05

Searches the entry list for an index matching a key starting from a position.

native int FindKey(const char[] key, int start = -1)

Parameters

const char[] key
Key name to search.
int start
A position after which to begin searching from. Use -1 to start from the first entry.

Return Value

int Position after start with an entry matching the given key, or -1 if no match was found.

Error

Invalid start position; must be a value between -1 and one less than the length of the entry.