# Count Of List Items

Grammar — Count of list items of list for player
FlagsNative | Function

Returns the count of list items in the dialog item. Only works with dialog items that have lists, such as pulldowns or list boxes.

# Arguments

  • int [ control ] — List
  • int — Player

Returns — int

native int DialogControlGetItemCount(
	int control,
	int player,
);

Category: Dialog / Dialog Item Values

# Examples

# mods/heroesdata.stormmod

UILib.galaxy

// L2186
DialogControlGetItemCount(libUIUI_gv_uIDebugPanel.lv_mountBaseDropdown, lp_player)
// L10757
DialogControlGetItemCount(lv_listRight, lv_triggeringPlayer)
// L10871
DialogControlGetItemCount(lv_listRight, lv_triggeringPlayer)