TopMenu.FindCategory Method

Finds a category's topobj ID in a TopMenu.

TopMenuObject FindCategory(const char[] name)

Parameters

const char[] name

Object's unique name.

Return Value

TopMenuObject ID on success, or INVALID_TOPMENUOBJECT on failure.