KvFindKeyById Function

Finds a KeyValues name by id.

bool KvFindKeyById(Handle kv, int id, char[] name, int maxlength)

Parameters

Handle kv

KeyValues Handle.

int id

KeyValues id.

char[] name

Buffer to store the name.

int maxlength

Maximum length of the value buffer.

Return Value

True on success, false if id not found.

Errors

Invalid Handle.