Older Newer
Fri, 13 Jun 2008 09:25:23 . . . . afh [new page]


Changes by last author:

Added:
= getCtlItemCount =

== Syntax ==

:int getCtlItemCount (int n)

== Arguments ==

:n

::The index of the control for which you want to obtain the item count.

== Return ==

:Returns 0 if not a valid control index. Returns the number of list items in a LISTBOX or COMBOBOX control. Returns the number of tabs in a TAB control. Returns -1 for any other control.

== Description ==

:Usually you know the number of items or tabs in a control, but this function can be useful for helping you keep track of this information.

== Example ==

<code>

nItems = getCtlCount(nLB1); //get item count for list box LB1.

</code>

== Also see ==

:(getCtlItemTop)?, (setCtlItemTop)?, getCtlItemText, (setCtlItemText)?, deleteCtlItem, deleteCtlItems, getCtlClass

== Comments ==

:Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.